Skip to content

Commit

Permalink
i#2868 test failures: checklevel only in debug (#3247)
Browse files Browse the repository at this point in the history
Disables checklevel option for release build regression.

Fixes #2868
  • Loading branch information
Hendrik Greving authored Nov 5, 2018
1 parent 321dd9a commit ac4ab72
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions suite/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2333,11 +2333,15 @@ if (CLIENT_INTERFACE)
endif ()

if (X86) # Generated code is x86-specific.
tobuild_api(api.ibl-stress api/ibl-stress.c
set(checklevel "")
if (DEBUG)
# This tests indirect branches between blocks.
# We use -checklevel 0 to disable the DOCHECK in check_thread_vm_area
# which makes building 150K bbs very slow.
"-disable_traces -shared_bb_ibt_tables -checklevel 0" "" OFF OFF)
set(checklevel "-checklevel 0")
endif ()
tobuild_api(api.ibl-stress api/ibl-stress.c
"-disable_traces -shared_bb_ibt_tables ${checklevel}" "" OFF OFF)
use_DynamoRIO_extension(api.ibl-stress drcontainers)
if (UNIX)
target_link_libraries(api.ibl-stress ${libpthread})
Expand Down

0 comments on commit ac4ab72

Please sign in to comment.