Skip to content

Commit a3d3675

Browse files
authored
Merge pull request #838 from Devsh-Graphics-Programming/yas_fconstexpr-steps_bugfix
added -fconstexpr-ops-limit for gcc
2 parents 957a726 + 5839ddf commit a3d3675

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)