replace gcc -Ofast by -O3: (not used, as no floating point math)

FreeBSD compiler issue warnings, deprecated in Clang
This commit is contained in:
F. Duncanh
2026-03-12 19:48:17 -04:00
parent 48173b5c82
commit 05bedcfaf1

View File

@@ -4,7 +4,7 @@ message( STATUS "*** CFLAGS \"" ${CMAKE_C_FLAGS} "\" from build environment will
# Common x86/x86_64 cflags # Common x86/x86_64 cflags
if( NOT NO_MARCH_NATIVE AND CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" ) if( NOT NO_MARCH_NATIVE AND CMAKE_SYSTEM_PROCESSOR MATCHES "(x86)|(X86)|(amd64)|(AMD64)" )
set( CMAKE_C_FLAGS "-Ofast -march=native ${CMAKE_C_FLAGS}" ) set( CMAKE_C_FLAGS "-O3 -march=native ${CMAKE_C_FLAGS}" )
message( STATUS "Using CFLAGS with -march=native" ) message( STATUS "Using CFLAGS with -march=native" )
message( STATUS "*** ONLY USE THIS WHEN COMPILING ON THE MACHINE THAT WILL RUN UXPLAY" ) message( STATUS "*** ONLY USE THIS WHEN COMPILING ON THE MACHINE THAT WILL RUN UXPLAY" )
message( STATUS " run \"cmake -DNO_MARCH_NATIVE=ON\" to switch off this compiler option" ) message( STATUS " run \"cmake -DNO_MARCH_NATIVE=ON\" to switch off this compiler option" )