diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-10-14 14:27:49 +0200 |
|---|---|---|
| committer | Jonas Schievink <jonas.schievink@ferrous-systems.com> | 2020-10-19 16:37:04 +0200 |
| commit | 0558e6eb9337960a1415e037ae7a44e3aa947479 (patch) | |
| tree | 126b4fbb1fd17ddeb99c834d6346458d313554fc /src | |
| parent | 13a5067061c14875bf1deda44a4740c08e872eb9 (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.rs | 3 |
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() |
