Skip to content

Commit

Permalink
cmake r sanitize thread
Browse files Browse the repository at this point in the history
  • Loading branch information
kelbon committed Aug 13, 2023
1 parent 580f610 commit 937bdea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set_target_properties(kelcorotest PROPERTIES

if(UNIX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(kelcorotest PUBLIC "-fsanitize=undefined" "-fsanitize=address" "-fsanitize=thread")
target_compile_options(kelcorotest PUBLIC "-fsanitize=undefined" "-fsanitize=address")
endif()
endif()
add_executable(generator_tests ${CMAKE_CURRENT_SOURCE_DIR}/tests_generator.cpp)
Expand All @@ -25,7 +25,7 @@ set_target_properties(generator_tests PROPERTIES
)
if (UNIX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(generator_tests PUBLIC "-fsanitize=undefined" "-fsanitize=address" "-fsanitize=thread")
target_compile_options(generator_tests PUBLIC "-fsanitize=undefined" "-fsanitize=address")
endif()
endif()
add_test(NAME generator_tests COMMAND generator_tests)
Expand Down

0 comments on commit 937bdea

Please sign in to comment.