[PATCH] D120269: [lld-macho] Require C++14 in LLD standalone build
Jez Ng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 21 11:28:40 PST 2022
int3 created this revision.
int3 added reviewers: lld-macho, MaskRay, Ericson2314.
Herald added a subscriber: mgorny.
int3 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120269
Files:
lld/CMakeLists.txt
Index: lld/CMakeLists.txt
===================================================================
--- lld/CMakeLists.txt
+++ lld/CMakeLists.txt
@@ -11,6 +11,10 @@
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120269.410349.patch
Type: text/x-patch
Size: 423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220221/74a5d3ea/attachment.bin>
More information about the llvm-commits
mailing list