Skip to content

Commit 5839ddf

Browse files
committed
added -fconstexpr-ops-limit for gcc
1 parent 6efd7e9 commit 5839ddf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/nbl/builtin/utils.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ function(ADD_CUSTOM_BUILTIN_RESOURCES _TARGET_NAME_ _BUNDLE_NAME_ _BUNDLE_SEARCH
165165

166166
if(MSVC)
167167
list(APPEND _BR_COMPILE_OPTIONS_ /constexpr:steps${_BR_CONSTEXPR_STEPS_})
168+
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
169+
list(APPEND _BR_COMPILE_OPTIONS_ -fconstexpr-ops-limit=${_BR_CONSTEXPR_STEPS_})
168170
else()
169171
list(APPEND _BR_COMPILE_OPTIONS_ -fconstexpr-steps=${_BR_CONSTEXPR_STEPS_})
170172
endif()

0 commit comments

Comments
 (0)