Skip to content

Commit

Permalink
cmake minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeseungYeom committed Jan 24, 2024
1 parent 8130c52 commit 550ff0e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/modules/SetupCompiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,12 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
if (CMAKE_BUILD_TYPE MATCHES Debug)
dyad_add_cxx_flags(CMAKE_CXX_FLAGS
-fsanitize=address -fno-omit-frame-pointer -fsanitize-recover=address)
dyad_add_cxx_flags(CMAKE_C_FLAGS
dyad_add_c_flags(CMAKE_C_FLAGS
-fsanitize=address -fno-omit-frame-pointer -fsanitize-recover=address)
add_link_options(-fsanitize=address)
else()
dyad_add_cxx_flags(CMAKE_CXX_FLAGS -fno-omit-frame-pointer)
dyad_add_cxx_flags(CMAKE_C_FLAGS -fno-omit-frame-pointer)
dyad_add_c_flags(CMAKE_C_FLAGS -fno-omit-frame-pointer)
endif ()
endif ()

Expand Down

0 comments on commit 550ff0e

Please sign in to comment.