diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-19 18:05:56 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-05-20 20:14:16 +0200 |
| commit | b2bf0cdecb373a770d28044925565e8da07e6cd0 (patch) | |
| tree | 2d14427bd0a9ebddca3b4b1f94de3987cfd528ce /src | |
| parent | 9f128235b49199f766f40df08c8a7eb25e143ae9 (diff) | |
| download | rust-b2bf0cdecb373a770d28044925565e8da07e6cd0.tar.gz rust-b2bf0cdecb373a770d28044925565e8da07e6cd0.zip | |
Set CMAKE_CXX_STANDARD when compiling LLD
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/native.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index 446017f1fab..5b6e9534843 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -520,6 +520,10 @@ impl Step for Lld { .define("LLVM_TABLEGEN_EXE", llvm_config.with_file_name("llvm-tblgen")); } + // Explicitly set C++ standard, because upstream doesn't do so + // for standalone builds. + cfg.define("CMAKE_CXX_STANDARD", "14"); + cfg.build(); t!(File::create(&done_stamp)); |
