cmake: use only sse2 flag for ICC

Default is pentium4
This commit is contained in:
Gregory Hainaut 2016-07-28 12:59:32 +02:00
parent eacd789a88
commit 11cdb070c0
1 changed files with 10 additions and 2 deletions

View File

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