mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-22 00:06:12 -05:00
Add 'WITH_ASAN' cmake option to enable AddressSanitizer compile options
This commit is contained in:
parent
0580369dbf
commit
c5a65094a2
@ -1042,6 +1042,16 @@ if (WITH_CORE)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
####################################################
|
||||
# asan
|
||||
set (WITH_ASAN FALSE CACHE BOOL "Use AddressSanitizer")
|
||||
mark_as_advanced(WITH_ASAN)
|
||||
if(WITH_ASAN)
|
||||
message(STATUS "Enabling AddressSanitizer")
|
||||
add_compile_options(-fsanitize=address)
|
||||
add_link_options(-fsanitize=address)
|
||||
endif()
|
||||
|
||||
#############################################################
|
||||
# process subdirs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user