Skip to content

Commit

Permalink
repair standalone clang builds
Browse files Browse the repository at this point in the history
Add missing C++ language standard setup for clang standalone build.

Patch by Michele Scandale!

Differential Revision: https://reviews.llvm.org/D83426
  • Loading branch information
compnerd committed Jul 10, 2020
1 parent a474d5b commit aa7a5ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions clang/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa7a5ad

Please sign in to comment.