Skip to content

Commit

Permalink
Run ASAN in test runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Dec 26, 2023
1 parent 258db3d commit d94556b
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 @@ -52,10 +52,10 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)

add_executable(${CMAKE_PROJECT_NAME} ../tinyexpr.cpp tetests.cpp testingmain.cpp)
if(MSVC)
target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC
target_compile_definitions(${CMAKE_PROJECT_NAME} PUBLIC _DISABLE_VECTOR_ANNOTATION _DISABLE_STRING_ANNOTATION
$<$<CONFIG:Release>:NDEBUG>)
target_compile_options(${CMAKE_PROJECT_NAME} PUBLIC /MP /W3 /WX /wd4554
$<$<CONFIG:Debug>:/Od> $<$<CONFIG:Release>:/O2>)
$<$<CONFIG:Debug>:/Od /fsanitize=address> $<$<CONFIG:Release>:/O2>)
endif()
target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE Catch2::Catch2)

Expand Down

0 comments on commit d94556b

Please sign in to comment.