mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
replace gcc -Ofast by -O3: (not used, as no floating point math)
FreeBSD compiler issue warnings, deprecated in Clang
This commit is contained in:
@@ -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" )
|
||||||
|
|||||||
Reference in New Issue
Block a user