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
This commit is contained in:
Saleem Abdulrasool 2020-07-10 09:33:54 -07:00
parent a474d5bae4
commit aa7a5ad56b
1 changed files with 4 additions and 0 deletions

View File

@ -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)