cmake: Enable sse4.1 by default

This commit is contained in:
TellowKrinkle 2021-05-13 03:24:04 -05:00 committed by Kojin
parent fec12819fa
commit 67a5c8e314
1 changed files with 4 additions and 4 deletions

View File

@ -151,9 +151,9 @@ if(${PCSX2_TARGET_ARCHITECTURES} MATCHES "i386")
if(NOT DEFINED ARCH_FLAG)
if (DISABLE_ADVANCE_SIMD)
if (USE_ICC)
set(ARCH_FLAG "-msse2")
set(ARCH_FLAG "-msse2 -msse4.1")
else()
set(ARCH_FLAG "-msse -msse2 -mfxsr -march=i686")
set(ARCH_FLAG "-msse -msse2 -msse4.1 -mfxsr -march=i686")
endif()
else()
# AVX requires some fix of the ABI (mangling) (default 2)
@ -174,9 +174,9 @@ elseif(${PCSX2_TARGET_ARCHITECTURES} MATCHES "x86_64")
if(NOT DEFINED ARCH_FLAG)
if (DISABLE_ADVANCE_SIMD)
if (USE_ICC)
set(ARCH_FLAG "-msse2")
set(ARCH_FLAG "-msse2 -msse4.1")
else()
set(ARCH_FLAG "-msse -msse2 -mfxsr")
set(ARCH_FLAG "-msse -msse2 -msse4.1 -mfxsr")
endif()
else()
#set(ARCH_FLAG "-march=native -fabi-version=6")