We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59eac97 commit 00b6015Copy full SHA for 00b6015
src/bootstrap/cc_detect.rs
@@ -99,7 +99,9 @@ pub fn find(build: &mut Build) {
99
100
// If we use llvm-libunwind, we will need a C++ compiler as well for all targets
101
// We'll need one anyways if the target triple is also a host triple
102
- cfg.cpp(true);
+ let mut cfg = cc::Build::new();
103
+ cfg.cargo_metadata(false).opt_level(2).warnings(false).debug(false).cpp(true)
104
+ .target(&target).host(&build.build);
105
if let Some(cxx) = config.and_then(|c| c.cxx.as_ref()) {
106
cfg.compiler(cxx);
107
} else {
0 commit comments