cmake: Add -mxsave flag to compiler flags

Fixes compilation when using GCC8.2 to compile a non-native build.

Fixes #2554.
This commit is contained in:
Jonathan Li 2018-08-16 08:33:57 +01:00
parent d258ef6275
commit b84a2cfaf6
1 changed files with 1 additions and 1 deletions

View File

@ -206,7 +206,7 @@ if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386")
if (USE_ICC)
set(ARCH_FLAG "-msse2")
else()
set(ARCH_FLAG "-msse -msse2 -mfxsr -march=i686")
set(ARCH_FLAG "-msse -msse2 -mfxsr -mxsave -march=i686")
endif()
else()
# AVX requires some fix of the ABI (mangling) (default 2)