diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-04-24 16:42:53 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-29 10:36:23 +0200 |
commit | 33fdd402b5cf16e8bb36fa499ac438b2b9134923 (patch) | |
tree | ab1f11fb5988fb5252a27aa14436d0f3be98508d /Meta/Lagom | |
parent | 357a455b5cf53d0f53851d9113628bf82f8f70c6 (diff) | |
download | serenity-33fdd402b5cf16e8bb36fa499ac438b2b9134923.zip |
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.
Diffstat (limited to 'Meta/Lagom')
-rw-r--r-- | Meta/Lagom/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Meta/Lagom/CMakeLists.txt b/Meta/Lagom/CMakeLists.txt index ccc4a58915..88b671e917 100644 --- a/Meta/Lagom/CMakeLists.txt +++ b/Meta/Lagom/CMakeLists.txt @@ -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) |