fix: fix detection of the compiler on windows
This commit is contained in:
parent
89edb2ddca
commit
76c5773d7c
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue