chore: make sanitizers opt in (#6493)
Make code sanitizers opt in with the `CHATTERINO_SANITIZER_SUPPORT` CMake option. After that's enabled, use the `SANITIZE_*` flag to enable individual sanitizers. Building tests is not required - sanitizers can be enabled in the app by itself.
This commit is contained in:
@@ -66,7 +66,10 @@ set(test_SOURCES
|
||||
)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${test_SOURCES})
|
||||
add_sanitizers(${PROJECT_NAME})
|
||||
|
||||
if(CHATTERINO_SANITIZER_SUPPORT)
|
||||
add_sanitizers(${PROJECT_NAME})
|
||||
endif()
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE chatterino-lib)
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE chatterino-mocks)
|
||||
|
||||
Reference in New Issue
Block a user