Meta: Increase fconstexpr-steps for Clang Lagom builds

Clang's default constexpr-steps limit is 1048576, which is not enough
for LibGfx's generation of the unicode bidirectional class lookup table
while GCC doesn't have any limit at all, so this patch increases the
limit to an arbitrarily larger value.
This commit is contained in:
Idan Horowitz 2021-04-24 16:42:53 +03:00 committed by Andreas Kling
parent 357a455b5c
commit 33fdd402b5
Notes: sideshowbarker 2024-07-18 18:55:59 +09:00

View file

@ -8,7 +8,8 @@ else()
endif()
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-overloaded-virtual -Wno-user-defined-literals")
# 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")
if (ENABLE_ADDRESS_SANITIZER)
add_definitions(-fsanitize=address -fno-omit-frame-pointer)