about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-10-14 14:27:49 +0200
committerJonas Schievink <jonas.schievink@ferrous-systems.com>2020-10-19 16:37:04 +0200
commit0558e6eb9337960a1415e037ae7a44e3aa947479 (patch)
tree126b4fbb1fd17ddeb99c834d6346458d313554fc /src
parent13a5067061c14875bf1deda44a4740c08e872eb9 (diff)
bootstrap: fall back to auto-detected CXX
This allows us to use the C++ compiler configured via
`CXX_target_triple` env vars
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/cc_detect.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootstrap/cc_detect.rs b/src/bootstrap/cc_detect.rs
index d50e4cf5269..e750c2963dd 100644
--- a/src/bootstrap/cc_detect.rs
+++ b/src/bootstrap/cc_detect.rs
@@ -129,7 +129,8 @@ pub fn find(build: &mut Build) {
             set_compiler(&mut cfg, Language::CPlusPlus, target, config, build);
             true
         } else {
-            false
+            // Use an auto-detected compiler (or one configured via `CXX_target_triple` env vars).
+            cfg.try_get_compiler().is_ok()
         };
 
         // for VxWorks, record CXX compiler which will be used in lib.rs:linker()