Skip to content

Commit

Permalink
expand fconstexpr limit
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyMlashkin committed Aug 20, 2024
1 parent 1d447d2 commit b72ed97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/assigner/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ find_package(GTest CONFIG REQUIRED)
add_executable(assigner_tests
assigner_test.cpp)

if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(assigner_tests PRIVATE "-fconstexpr-steps=2147483647")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(assigner_tests PRIVATE "-fconstexpr-ops-limit=4294967295")
endif()

target_include_directories(assigner_tests PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../evmc>)

Expand Down

0 comments on commit b72ed97

Please sign in to comment.