Skip to content

Commit 3eeb50b

Browse files
Ast-x64thomcc
authored andcommitted
Use specified compiler in is_flag_supported
Use the compiler specified instead of the default one to test whether a flag can be accepted. Fixes #675.
1 parent 00befe7 commit 3eeb50b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,9 @@ impl Build {
477477
.debug(false)
478478
.cpp(self.cpp)
479479
.cuda(self.cuda);
480+
if let Some(ref c) = self.compiler {
481+
cfg.compiler(c.clone());
482+
}
480483
let mut compiler = cfg.try_get_compiler()?;
481484

482485
// Clang uses stderr for verbose output, which yields a false positive

0 commit comments

Comments
 (0)