mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-11 21:35:27 -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)
|
-fno-omit-frame-pointer)
|
||||||
target_link_options(${tgt} PRIVATE -fsanitize=undefined)
|
target_link_options(${tgt} PRIVATE -fsanitize=undefined)
|
||||||
endif()
|
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()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user