cmake: fix asan on 64 bits

This commit is contained in:
Gregory Hainaut 2015-01-05 00:24:37 +01:00
parent aba0a09816
commit e447ffc8b2
1 changed files with 4 additions and 1 deletions

View File

@ -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()