mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 10:40:39 +01:00
cmake: fix asan on 64 bits
This commit is contained in:
1 parent
aba0a09816
commit
e447ffc8b2
1 file changed
+4
-1
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user