mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 05:23:29 -04:00
build: add ENABLE_SANITIZER
for other sanitizer types
This commit is contained in:
parent
2e211160e5
commit
046e738e76
@ -881,6 +881,13 @@ foreach(tgt dwarfs_test_helpers dwarfs_follybenchmark_lite
|
||||
-fno-omit-frame-pointer)
|
||||
target_link_options(${tgt} PRIVATE -fsanitize=undefined)
|
||||
endif()
|
||||
|
||||
if(ENABLE_SANITIZER)
|
||||
target_compile_options(${tgt} PRIVATE -fsanitize=${ENABLE_SANITIZER}
|
||||
-fno-omit-frame-pointer)
|
||||
target_link_options(${tgt} PRIVATE -fsanitize=${ENABLE_SANITIZER})
|
||||
endif()
|
||||
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user