Skip to content

Commit

Permalink
update sanitizers option for the C programs
Browse files Browse the repository at this point in the history
  • Loading branch information
i80287 committed Oct 29, 2024
1 parent 5b70667 commit 7a2db6b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -284,13 +284,13 @@ function(configure_gcc_or_clang_gcc_options)
set(TEST_COMPILE_DEFINITIONS
${LOCAL_FN_TEST_COMPILE_DEFINITIONS}
PARENT_SCOPE)
set(CMAKE_C_FLAGS_RELWITHDEBINFO
${LOCAL_FN_CMAKE_C_FLAGS_RELWITHDEBINFO}
PARENT_SCOPE)
if(NOT USING_MINGW_GCC)
set (LOCAL_FN_CMAKE_C_FLAGS_RELWITHDEBINFO "${LOCAL_FN_CMAKE_C_FLAGS_RELWITHDEBINFO} -fsanitize=address,undefined" PARENT_SCOPE)
set (LOCAL_FN_CMAKE_CXX_FLAGS_RELWITHDEBINFO "${LOCAL_FN_CMAKE_CXX_FLAGS_RELWITHDEBINFO} -fsanitize=address,undefined" PARENT_SCOPE)
endif()
set(CMAKE_C_FLAGS_RELWITHDEBINFO
${LOCAL_FN_CMAKE_C_FLAGS_RELWITHDEBINFO}
PARENT_SCOPE)
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO
${LOCAL_FN_CMAKE_CXX_FLAGS_RELWITHDEBINFO}
PARENT_SCOPE)
Expand Down

0 comments on commit 7a2db6b

Please sign in to comment.