[clang] aa7a5ad - repair standalone clang builds
Saleem Abdulrasool via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 10 09:37:34 PDT 2020
Author: Saleem Abdulrasool
Date: 2020-07-10T09:36:27-07:00
New Revision: aa7a5ad56b6028e0963e1a8d45b4e82f3f6bc70e
URL: https://github.com/llvm/llvm-project/commit/aa7a5ad56b6028e0963e1a8d45b4e82f3f6bc70e
DIFF: https://github.com/llvm/llvm-project/commit/aa7a5ad56b6028e0963e1a8d45b4e82f3f6bc70e.diff
LOG: repair standalone clang builds
Add missing C++ language standard setup for clang standalone build.
Patch by Michele Scandale!
Differential Revision: https://reviews.llvm.org/D83426
Added:
Modified:
clang/CMakeLists.txt
Removed:
################################################################################
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
index 83c30528499c..7f8e0718c2eb 100644
--- a/clang/CMakeLists.txt
+++ b/clang/CMakeLists.txt
@@ -9,6 +9,10 @@ endif()
if( CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR )
project(Clang)
+ set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard to conform to")
+ set(CMAKE_CXX_STANDARD_REQUIRED YES)
+ set(CMAKE_CXX_EXTENSIONS NO)
+
# Rely on llvm-config.
set(CONFIG_OUTPUT)
if(LLVM_CONFIG)
More information about the cfe-commits
mailing list