From 509092db15e6684bd91488756eaf665ca19f9967 Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Mon, 13 Jul 2020 08:56:32 -0700 Subject: [PATCH] examples: Name example 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). --- crates/misc/run-examples/src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/misc/run-examples/src/main.rs b/crates/misc/run-examples/src/main.rs index 358b738311ee..891c795995ec 100644 --- a/crates/misc/run-examples/src/main.rs +++ b/crates/misc/run-examples/src/main.rs @@ -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"