Skip to content

Commit 606cb85

Browse files
committed
[lld] Require C++14 in LLD standalone build
This is what the Clang standalone build does too. And setting this seems to be required to get the standalone build to work on my Mac. Reviewed By: #lld-macho, MaskRay, Ericson2314, smeenai Differential Revision: https://reviews.llvm.org/D120269
1 parent ed4f0cb commit 606cb85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lld/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ endif()
1111
include(GNUInstallDirs)
1212

1313
if(LLD_BUILT_STANDALONE)
14+
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
15+
set(CMAKE_CXX_STANDARD_REQUIRED YES)
16+
set(CMAKE_CXX_EXTENSIONS NO)
17+
1418
set(CMAKE_INCLUDE_CURRENT_DIR ON)
1519

1620
# Rely on llvm-config.

0 commit comments

Comments
 (0)