Skip to content

Commit 087cd77

Browse files
committed
rustbuild: always set cxx for build host
Even if it's not in hosts Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent 870f13a commit 087cd77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/cc_detect.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ pub fn find(build: &mut Build) {
106106
let cxx_configured = if let Some(cxx) = config.and_then(|c| c.cxx.as_ref()) {
107107
cfg.compiler(cxx);
108108
true
109-
} else if build.hosts.contains(&target) {
109+
} else if build.hosts.contains(&target) || build.build == target {
110110
set_compiler(&mut cfg, Language::CPlusPlus, target, config, build);
111111
true
112112
} else {

0 commit comments

Comments
 (0)