Lagom/CMake: Add -fconstexpr-steps for AppleClang

This commit is contained in:
Carlos César Neves Enumo 2021-05-01 00:19:14 -03:00 committed by Linus Groh
parent 22d6fbeb12
commit 69e2431c64
Notes: sideshowbarker 2024-07-18 18:50:46 +09:00

View file

@ -7,7 +7,7 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++2a -fPIC -g -Wno-deprecated-copy")
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang$")
# Clang's default constexpr-steps limit is 1048576(2^20), GCC doesn't have one
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual -Wno-user-defined-literals -fconstexpr-steps=16777216")