From 33fdd402b5cf16e8bb36fa499ac438b2b9134923 Mon Sep 17 00:00:00 2001 From: Idan Horowitz Date: Sat, 24 Apr 2021 16:42:53 +0300 Subject: [PATCH] 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. --- Meta/Lagom/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)