[lld] 606cb85 - [lld] Require C++14 in LLD standalone build
Jez Ng via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 22 15:15:40 PST 2022
Author: Jez Ng
Date: 2022-02-22T18:15:29-05:00
New Revision: 606cb8548a1b7763e0c8489c5efe66803a7ede72
URL: https://github.com/llvm/llvm-project/commit/606cb8548a1b7763e0c8489c5efe66803a7ede72
DIFF: https://github.com/llvm/llvm-project/commit/606cb8548a1b7763e0c8489c5efe66803a7ede72.diff
LOG: [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
Added:
Modified:
lld/CMakeLists.txt
Removed:
################################################################################
diff --git a/lld/CMakeLists.txt b/lld/CMakeLists.txt
index 9bcc135665d02..f51c864af8375 100644
--- a/lld/CMakeLists.txt
+++ b/lld/CMakeLists.txt
@@ -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.
More information about the llvm-commits
mailing list