Enable GCC optimizations.

This commit is contained in:
2021-09-29 02:54:49 +01:00
parent d433af7987
commit 33abe35273

View File

@@ -14,7 +14,7 @@ if("${CMAKE_BUILD_TYPE}" MATCHES "Release")
add_compile_options("/arch:SSE2")
endif()
else()
add_compile_options(-flto -ffast-math)
add_compile_options(-flto -ffast-math -O3)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "i686" OR ${CMAKE_SYSTEM_PROCESSOR} MATCHES "AMD64")
add_compile_options(-march=core2 -mfpmath=sse -msse3 -mtune=westmere)