Skip to content

Commit

Permalink
examples: Name example exectutables "foo.exe" on Windows
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
fitzgen committed Jul 13, 2020
1 parent 9f0ec62 commit 509092d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/misc/run-examples/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ fn main() -> anyhow::Result<()> {
.arg("userenv.lib")
.arg("ntdll.lib")
.arg("shell32.lib")
.arg("ole32.lib");
"./main.exe"
.arg("ole32.lib")
.arg("/LINK")
.arg("/OUT:foo.exe");
"./foo.exe"
} else {
cmd.arg("target/debug/libwasmtime.a").arg("-o").arg("foo");
"./foo"
Expand Down

0 comments on commit 509092d

Please sign in to comment.