mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-22 19:25:33 +00:00
Adding checks to see if any ASAN flags are set, if so then we set(HAVE_ASAN ON) so the infomartion output will properly list ASAN as on.
This commit is contained in:
parent
70bd205bb1
commit
dbedaeceb3
|
@ -2316,6 +2316,9 @@ endmacro()
|
|||
|
||||
macro(asan_check_add_debug_flag ASAN_FLAG)
|
||||
check_add_debug_flag("-fsanitize=${ASAN_FLAG}" "${ASAN_FLAG}")
|
||||
if(HAS_C_${ASAN_FLAG} OR HAS_CXX_${ASAN_FLAG})
|
||||
set(HAVE_ASAN ON)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(asan_check_add_debug_flag2 ASAN_FLAG)
|
||||
|
@ -2337,6 +2340,10 @@ macro(asan_check_add_debug_flag2 ASAN_FLAG)
|
|||
if (HAS_CXX_${ASAN_FLAG})
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${FLAG}")
|
||||
endif()
|
||||
|
||||
if(HAS_C_${ASAN_FLAG} OR HAS_CXX_${ASAN_FLAG})
|
||||
set(HAVE_ASAN ON)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# enable AddressSanitizer if supported
|
||||
|
|
Loading…
Reference in a new issue