Skip to content

Commit 0558e6e

Browse files
jonas-schievinkJonas Schievink
authored and
Jonas Schievink
committed
bootstrap: fall back to auto-detected CXX
This allows us to use the C++ compiler configured via `CXX_target_triple` env vars
1 parent 13a5067 commit 0558e6e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/cc_detect.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ pub fn find(build: &mut Build) {
129129
set_compiler(&mut cfg, Language::CPlusPlus, target, config, build);
130130
true
131131
} else {
132-
false
132+
// Use an auto-detected compiler (or one configured via `CXX_target_triple` env vars).
133+
cfg.try_get_compiler().is_ok()
133134
};
134135

135136
// for VxWorks, record CXX compiler which will be used in lib.rs:linker()

0 commit comments

Comments
 (0)