Skip to content

Commit

Permalink
Set CMAKE_CXX_STANDARD when compiling LLD
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed May 20, 2020
1 parent 9f12823 commit b2bf0cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bootstrap/native.rs
Expand Up @@ -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));
Expand Down

0 comments on commit b2bf0cd

Please sign in to comment.