mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 00:49:08 +00:00
chore(build): use target-specific directives when enabling ASan
This commit is contained in:
parent
5157c414f5
commit
a5c589f5a9
3 changed files with 5 additions and 7 deletions
|
|
@ -79,10 +79,6 @@ if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
LCOV_ARGS --rc branch_coverage=1
|
||||
GENHTML_ARGS --rc genhtml_branch_coverage=1
|
||||
)
|
||||
|
||||
# Enable ASan for debug builds on gcc
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
|
||||
endif()
|
||||
|
||||
if(WHOA_TEST_STORMDLL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue