Set CMAKE_CXX_STANDARD when compiling LLD

This commit is contained in:
Nikita Popov 2020-05-19 18:05:56 +02:00
parent 9f128235b4
commit b2bf0cdecb

View File

@ -520,6 +520,10 @@ impl Step for Lld {
.define("LLVM_TABLEGEN_EXE", llvm_config.with_file_name("llvm-tblgen")); .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(); cfg.build();
t!(File::create(&done_stamp)); t!(File::create(&done_stamp));