fix: fix detection of the compiler on windows

This commit is contained in:
Amin Yahyaabadi 2022-08-06 13:41:50 -07:00
parent 89edb2ddca
commit 76c5773d7c

View file

@ -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");