Skip to content

Commit b2bf0cd

Browse files
committed
Set CMAKE_CXX_STANDARD when compiling LLD
1 parent 9f12823 commit b2bf0cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bootstrap/native.rs

+4
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,10 @@ impl Step for Lld {
520520
.define("LLVM_TABLEGEN_EXE", llvm_config.with_file_name("llvm-tblgen"));
521521
}
522522

523+
// Explicitly set C++ standard, because upstream doesn't do so
524+
// for standalone builds.
525+
cfg.define("CMAKE_CXX_STANDARD", "14");
526+
523527
cfg.build();
524528

525529
t!(File::create(&done_stamp));

0 commit comments

Comments
 (0)