Skip to content

Commit

Permalink
transpiler/test: increase constexpr computation limit for gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
ioxid committed Nov 29, 2024
1 parent 842ee4e commit 4b96e98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crypto3/libs/transpiler/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ macro(define_transpiler_test name)
cm_test(NAME transpiler_${name}_test SOURCES ${name}.cpp)

if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
target_compile_options(transpiler_${name}_test PRIVATE "-fconstexpr-steps=2147483647")
endif()
target_compile_options(${ARG_TARGET_NAME} PRIVATE "-fconstexpr-steps=2147483647")
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(${ARG_TARGET_NAME} PRIVATE "-fconstexpr-ops-limit=4294967295")
endif ()

target_include_directories(transpiler_${name}_test PRIVATE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
Expand Down

0 comments on commit 4b96e98

Please sign in to comment.