mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 19:24:29 +00:00
Enable GCC optimizations.
This commit is contained in:
@@ -14,7 +14,7 @@ if("${CMAKE_BUILD_TYPE}" MATCHES "Release")
|
|||||||
add_compile_options("/arch:SSE2")
|
add_compile_options("/arch:SSE2")
|
||||||
endif()
|
endif()
|
||||||
else()
|
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")
|
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)
|
add_compile_options(-march=core2 -mfpmath=sse -msse3 -mtune=westmere)
|
||||||
|
|||||||
Reference in New Issue
Block a user