Skip to content

Commit

Permalink
upgrade: (llvm 16) require C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
PatriceBlin committed Jul 24, 2023
1 parent 69fffe9 commit 0735284
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ message(STATUS "LLVM Config: ASSERTIONS:${LLVM_ENABLE_ASSERTIONS}, "

# Depends on how clang was compiled, by default it's set to C++14
# https://llvm.org/docs/CMake.html#rarely-used-cmake-variables
set(CMAKE_CXX_STANDARD 14)
if (LLVM_PACKAGE_VERSION VERSION_LESS "16.0.0")
set(CMAKE_CXX_STANDARD 14)
else()
set(CMAKE_CXX_STANDARD 17)
endif()

if (LLVM_ENABLE_LIBCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
Expand Down

0 comments on commit 0735284

Please sign in to comment.