Remove redundant sse2 flag on x86_64 as it's enabled by default and only needs to explicitly be set on 32-bit x86

This commit is contained in:
Kevin Reinholz
2026-03-13 18:44:09 -07:00
parent f020bcdd75
commit a7b672ae0d
+3 -3
View File
@@ -478,12 +478,12 @@ if(NOT MSVC)
add_compile_options(-fno-math-errno)
if(X86 OR X86_64)
# enable sse2 code generation
if(X86)
# enable sse2 code generation (enabled by default on X86_64)
if(NOT MACOSX)
add_compile_options(-msse2)
endif()
if(NOT X86_64 AND NOT CLANG)
if(NOT CLANG)
add_compile_options(-mfpmath=sse)
# add_compile_options(-mstackrealign)
endif()