mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
enable AddressSanitizer only for GCC 5 onwards (bug #5533)
This commit is contained in:
parent
066960c207
commit
5045d299a6
@ -2350,7 +2350,7 @@ macro(asan_check_add_debug_flag2 ASAN_FLAG)
|
||||
endmacro()
|
||||
|
||||
# enable AddressSanitizer if supported
|
||||
check_add_debug_flag("-shared-libasan" "shared_libasan")
|
||||
if ( (CMAKE_C_COMPILER_ID STREQUAL "GNU") AND CMAKE_C_COMPILER_VERSION VERSION_GREATER 4)
|
||||
asan_check_add_debug_flag2("address")
|
||||
asan_check_add_debug_flag("bool")
|
||||
asan_check_add_debug_flag("bounds")
|
||||
@ -2364,6 +2364,7 @@ asan_check_add_debug_flag("undefined")
|
||||
asan_check_add_debug_flag("vla-bound")
|
||||
asan_check_add_debug_flag("leak")
|
||||
asan_check_add_debug_flag("object-size")
|
||||
endif()
|
||||
|
||||
##### Tests #####
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user