Skip to content

Commit c53a6a6

Browse files
committed
examples: Name exmaple exectutables "foo.exe" on Windows
We were accidentally always running the `fib-debug/main` example because of shenanigans with alphabetical ordering and hard codeing "main.exe" as the command we run. Now we will always compile the executable to "foo.exe" and run that (which is similar to how we do `-o foo` on unix).
1 parent 9f0ec62 commit c53a6a6

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • crates/misc/run-examples/src

crates/misc/run-examples/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ fn main() -> anyhow::Result<()> {
8383
.arg("userenv.lib")
8484
.arg("ntdll.lib")
8585
.arg("shell32.lib")
86-
.arg("ole32.lib");
87-
"./main.exe"
86+
.arg("ole32.lib")
87+
.arg("/OUT:foo.exe");
88+
"./foo.exe"
8889
} else {
8990
cmd.arg("target/debug/libwasmtime.a").arg("-o").arg("foo");
9091
"./foo"

0 commit comments

Comments
 (0)