Skip to content

Commit

Permalink
[lld] Require C++14 in LLD standalone build
Browse files Browse the repository at this point in the history
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
  • Loading branch information
int3 committed Feb 22, 2022
1 parent ed4f0cb commit 606cb85
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lld/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ endif()
include(GNUInstallDirs)

if(LLD_BUILT_STANDALONE)
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

# Rely on llvm-config.
Expand Down

0 comments on commit 606cb85

Please sign in to comment.