Skip to content

Commit

Permalink
rustbuild: always set cxx for build host
Browse files Browse the repository at this point in the history
Even if it's not in hosts

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  • Loading branch information
Keruspe committed Jun 24, 2019
1 parent 870f13a commit 087cd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/cc_detect.rs
Expand Up @@ -106,7 +106,7 @@ pub fn find(build: &mut Build) {
let cxx_configured = if let Some(cxx) = config.and_then(|c| c.cxx.as_ref()) {
cfg.compiler(cxx);
true
} else if build.hosts.contains(&target) {
} else if build.hosts.contains(&target) || build.build == target {
set_compiler(&mut cfg, Language::CPlusPlus, target, config, build);
true
} else {
Expand Down

0 comments on commit 087cd77

Please sign in to comment.