mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-23 02:27:39 +03:00
Set CMAKE_CXX_STANDARD when compiling LLD
This commit is contained in:
@@ -520,6 +520,10 @@ fn run(self, builder: &Builder<'_>) -> PathBuf {
|
||||
.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));
|
||||
|
||||
Reference in New Issue
Block a user