cmake: Add -mxsave flag to ARCH_FLAG in BuildParameters.

A couple of users reported compilation issues using gcc 8.2+ on some
machines/distros on github and discord and adding the -mxsave flag
suggested by turtleli seems to fix the issue.

Fixes #2669
This commit is contained in:
lightningterror 2018-12-27 04:39:30 +01:00
parent eb7824e6ff
commit 752dbdefd2
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386")
# AVX requires some fix of the ABI (mangling) (default 2)
# Note: V6 requires GCC 4.7
#set(ARCH_FLAG "-march=native -fabi-version=6")
set(ARCH_FLAG "-march=native")
set(ARCH_FLAG "-mxsave -march=native")
endif()
endif()