cmake: no preferred-stack-option in asan

It conflicts with the global definition

I don't remember why this option was set on GSdx. Potentially it could be dropped (or fixed correctly)

Anyway, it will help to enable Address Sanitizer on Linux Build
This commit is contained in:
Gregory Hainaut 2015-02-20 19:42:35 +01:00
parent 866f052e34
commit e0f56282de
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ endif()
#Clang doesn't support a few common flags that GCC does.
if(NOT USE_CLANG)
set(GSdxFinalFlags ${GSdxFinalFlags} -fabi-version=6)
if (_M_X86_32)
if (_M_X86_32 AND NOT USE_ASAN)
# Someone need to seriously test the build of GSdx without this option
set(GSdxFinalFlags ${GSdxFinalFlags} -mpreferred-stack-boundary=2)
endif()
endif()