From ddc9d5765e33225c6df36d8353e548a83cf2c589 Mon Sep 17 00:00:00 2001 From: Ben Batha Date: Mon, 22 May 2017 23:14:55 -0400 Subject: [PATCH] dont assume .exe is the only executable extension on windows This should probably be a search over PATH_EXT in the future, but that may still have some edge cases. For instance, emscripten generates .js files which are intended to be executed and the user would likely not have in her PATH_EXT. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index be8243c..c900ce4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -211,7 +211,7 @@ impl BuildConfig { } if cfg!( target_os = "windows" ) { match self.build_target { BuildTarget::Lib( _, Profile::Main ) => matcher!( "\\.(lib|dll)$" ), - _ => matcher!( "\\.exe$" ) + _ => {} } } if cfg!( target_os = "linux" ) { match self.build_target {