Skip to content

Commit

Permalink
Set CXX_<target> in bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
ids1024 committed Jun 22, 2017
1 parent 74fa279 commit 526afcb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(" "));
}
Expand Down

0 comments on commit 526afcb

Please sign in to comment.