Skip to content

Commit c682ac9

Browse files
committed
rustbuild: set cxx for hosts even if not configured
Signed-off-by: Marc-Antoine Perennou <[email protected]>
1 parent fdecfe4 commit c682ac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/cc_detect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pub fn find(build: &mut Build) {
110110
set_compiler(&mut cfg, Language::CPlusPlus, target, config, build)
111111
};
112112

113-
if cxx_configured {
113+
if cxx_configured || build.hosts.contains(&target) {
114114
let compiler = cfg.get_compiler();
115115
build.cxx.insert(target, compiler);
116116
}

0 commit comments

Comments
 (0)