Skip to content

Commit

Permalink
Update -std to c++20 for Clang config
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Siedlaczek <michal@siedlaczek.me>
  • Loading branch information
elshize committed Jan 7, 2025
1 parent 63dd7aa commit efb53c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Toolchain for compiling with Clang
set(CMAKE_C_COMPILER "clang")
set(CMAKE_CXX_COMPILER "clang++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -stdlib=libc++")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20 -stdlib=libc++")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libc++ -lc++abi -lc++")

0 comments on commit efb53c2

Please sign in to comment.