Skip to content

Commit

Permalink
[cmake] sanitazier flags in C_FLAGS instead of CXX
Browse files Browse the repository at this point in the history
  • Loading branch information
simogasp authored Feb 26, 2022
1 parent c6067be commit cdfc6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries" ON)
option(ASAN "Use AddressSanitizer for debug builds to detect memory issues" OFF)

if (ASAN)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} \
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} \
-fsanitize=address \
-fsanitize=bool \
-fsanitize=bounds \
Expand Down

0 comments on commit cdfc6b4

Please sign in to comment.