Skip to content

Commit

Permalink
sanitizers + coro != work
Browse files Browse the repository at this point in the history
  • Loading branch information
kelbon committed Aug 13, 2023
1 parent 7f38309 commit 2a6b8f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ set_target_properties(kelcorotest PROPERTIES
CXX_STANDARD 20
)

# sanitizers do not work on clang with coroutines... Rly...
if(UNIX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(kelcorotest PUBLIC "-fsanitize=undefined" "-fsanitize=address")
target_link_options(kelcorotest PUBLIC "-fsanitize=undefined" "-fsanitize=address")
endif()
Expand All @@ -25,7 +26,7 @@ set_target_properties(generator_tests PROPERTIES
CXX_STANDARD 20
)
if (UNIX)
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
target_compile_options(generator_tests PUBLIC "-fsanitize=undefined" "-fsanitize=address")
target_link_options(generator_tests PUBLIC "-fsanitize=undefined" "-fsanitize=address")
endif()
Expand Down

0 comments on commit 2a6b8f6

Please sign in to comment.