linux build: enable mfxsr option

Honestly GCC could have enabled it with sse.

Fix #1012
This commit is contained in:
Gregory Hainaut 2015-12-01 18:52:16 +01:00
parent 1f374e4b92
commit 3cefa54789
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386")
if(NOT DEFINED ARCH_FLAG) if(NOT DEFINED ARCH_FLAG)
if (DISABLE_ADVANCE_SIMD) if (DISABLE_ADVANCE_SIMD)
set(ARCH_FLAG "-msse -msse2 -march=i686") set(ARCH_FLAG "-msse -msse2 -mfxsr -march=i686")
else() else()
# AVX requires some fix of the ABI (mangling) (default 2) # AVX requires some fix of the ABI (mangling) (default 2)
# Note: V6 requires GCC 4.7 # Note: V6 requires GCC 4.7
@ -148,7 +148,7 @@ elseif(${PCSX2_TARGET_ARCHITECTURES} MATCHES "x86_64")
if(NOT DEFINED ARCH_FLAG) if(NOT DEFINED ARCH_FLAG)
if (DISABLE_ADVANCE_SIMD) if (DISABLE_ADVANCE_SIMD)
set(ARCH_FLAG "-msse -msse2") set(ARCH_FLAG "-msse -msse2 -mfxsr")
else() else()
#set(ARCH_FLAG "-march=native -fabi-version=6") #set(ARCH_FLAG "-march=native -fabi-version=6")
set(ARCH_FLAG "-march=native") set(ARCH_FLAG "-march=native")