From 76c5773d7c388917bdd9d71a5b71feeb7ac4bde6 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Sat, 6 Aug 2022 13:41:50 -0700 Subject: [PATCH] fix: fix detection of the compiler on windows --- cli/loader/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/loader/src/lib.rs b/cli/loader/src/lib.rs index 029da451..e71001a4 100644 --- a/cli/loader/src/lib.rs +++ b/cli/loader/src/lib.rs @@ -377,7 +377,8 @@ impl Loader { command.env(key, value); } - if cfg!(windows) { + let compiler = config.get_compiler(); + if compiler.is_like_msvc() { command.args(&["/nologo", "/LD", "/I"]).arg(header_path); if self.debug_build { command.arg("/Od");