mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 13:30:47 -04:00
build: add ENABLE_SANITIZER
for other sanitizer types
This commit is contained in:
parent
05166815b2
commit
b1f6fd72a7
@ -879,6 +879,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