- SSE2 instructions were always enabled for certain files.

This commit is contained in:
drfrag666 2018-04-30 12:57:36 +02:00
parent a695491a1f
commit be304a4929

View file

@ -1396,15 +1396,18 @@ if( CMAKE_COMPILER_IS_GNUCXX )
# GCC misoptimizes this file
set_source_files_properties( oplsynth/fmopl.cpp PROPERTIES COMPILE_FLAGS "-fno-tree-dominator-opts -fno-tree-fre" )
endif()
if( ZD_CMAKE_COMPILER_IS_GNUCXX_COMPATIBLE )
# Need to enable intrinsics for these files.
if( SSE_MATTERS )
set_source_files_properties(
gl/system/gl_swframebuffer.cpp
polyrenderer/poly_all.cpp
swrenderer/r_all.cpp
x86.cpp
PROPERTIES COMPILE_FLAGS "-msse2 -mmmx" )
set_source_files_properties( x86.cpp PROPERTIES COMPILE_FLAGS "-msse2 -mmmx" )
if( USE_SSE2 )
set_source_files_properties(
gl/system/gl_swframebuffer.cpp
polyrenderer/poly_all.cpp
swrenderer/r_all.cpp
PROPERTIES COMPILE_FLAGS "-msse2 -mmmx" )
endif()
endif()
endif()