Skip to content

Commit 2b97222

Browse files
authored
Disable rtcheck if sanitizers are enabled (#166)
Disable rtcheck when using address or thread sanitizers.
1 parent 95bede6 commit 2b97222

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ if (WITH_THREAD_SANITIZER)
4949
endif ()
5050
endif ()
5151

52+
# Disable rtcheck if sanitizers is enabled
53+
if (WITH_ADDRESS_SANITIZER OR WITH_THREAD_SANITIZER)
54+
set(PLUGINVAL_ENABLE_RTCHECK OFF CACHE BOOL "Disable rtcheck when using sanitizers" FORCE)
55+
message(STATUS "Disabling rtcheck because a sanitizer is enabled")
56+
endif()
57+
5258
# Adds all the module sources so they appear correctly in the IDE
5359
set_property(GLOBAL PROPERTY USE_FOLDERS YES)
5460
option(JUCE_ENABLE_MODULE_SOURCE_GROUPS "Enable Module Source Groups" ON)

0 commit comments

Comments
 (0)