mirror of
https://github.com/thunderbrewhq/squall.git
synced 2026-02-04 08:59:07 +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
|
|
@ -57,9 +57,8 @@ if(CMAKE_COMPILER_IS_GNUCXX AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||
target_compile_options(${PROJECT_NAME} PRIVATE -g -fprofile-arcs -ftest-coverage -O0)
|
||||
|
||||
# Enable ASan for debug builds on gcc
|
||||
target_link_options(StormTest
|
||||
PUBLIC -fsanitize=address
|
||||
)
|
||||
target_compile_options(StormTest PRIVATE -fsanitize=address -fno-omit-frame-pointer)
|
||||
target_link_options(StormTest PRIVATE -fsanitize=address)
|
||||
endif()
|
||||
|
||||
install(TARGETS StormTest DESTINATION "bin")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue