Set CXX_<target> in bootstrap

This commit is contained in:
Ian Douglas Scott 2017-06-22 10:42:10 -07:00
parent 74fa27928a
commit 526afcb0a3
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959

View File

@ -450,6 +450,7 @@ impl Build {
// FIXME: the guard against msvc shouldn't need to be here
if !target.contains("msvc") {
cargo.env(format!("CC_{}", target), self.cc(target))
.env(format!("CXX_{}", target), self.cxx(target))
.env(format!("AR_{}", target), self.ar(target).unwrap()) // only msvc is None
.env(format!("CFLAGS_{}", target), self.cflags(target).join(" "));
}