mirror of https://github.com/PCSX2/pcsx2.git
cmake: fix asan on 64 bits
This commit is contained in:
parent
aba0a09816
commit
e447ffc8b2
|
@ -238,7 +238,10 @@ elseif(CMAKE_BUILD_TYPE MATCHES "Release")
|
|||
endif()
|
||||
|
||||
if (USE_ASAN)
|
||||
set(ASAN_FLAG "-fsanitize=address -fno-omit-frame-pointer -g -mpreferred-stack-boundary=4 -mincoming-stack-boundary=2 -DASAN_WORKAROUND")
|
||||
set(ASAN_FLAG "-fsanitize=address -fno-omit-frame-pointer -g -DASAN_WORKAROUND")
|
||||
if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386")
|
||||
set(ASAN_FLAG "${ASAN_FLAG} -mpreferred-stack-boundary=4 -mincoming-stack-boundary=2")
|
||||
endif()
|
||||
else()
|
||||
set(ASAN_FLAG "")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue