Skip to content

Commit

Permalink
Revert "Revert "Switch to C++20 to test if it can get built by our cl…
Browse files Browse the repository at this point in the history
…oud toolchain""

This reverts commit 5ebd565.
  • Loading branch information
lhog committed Aug 10, 2023
1 parent c960c9e commit 5d2e1e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,11 @@ else (LDGOLD_FOUND)
message(WARNING "You are using ld.bfd, it's much slower than ld.gold.")
endif (LDGOLD_FOUND)

message(STATUS "Compiling with C++17")
message(STATUS "Compiling with C++20")
if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++17 /permissive- /Zc:__cplusplus")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++20 /permissive- /Zc:__cplusplus")
else (MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++20")
endif(MSVC)

add_definitions(-D_GLIBCXX_USE_NANOSLEEP) # issue in std::chrono with gentoo and few other distros
Expand Down

0 comments on commit 5d2e1e0

Please sign in to comment.