build: s/-Ofast/-O3 -ffast-math/
Use `-O3 -ffast-math` instead of `-Ofast`, which is deprecated by the latest clang. In both our options and for libretro. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
parent
2d439f7ba6
commit
364776b833
|
@ -50,7 +50,7 @@ endif()
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
add_compile_options(-ggdb3 -fno-omit-frame-pointer -Wall -Wextra)
|
add_compile_options(-ggdb3 -fno-omit-frame-pointer -Wall -Wextra)
|
||||||
else()
|
else()
|
||||||
add_compile_options(-Ofast -fomit-frame-pointer)
|
add_compile_options(-O3 -ffast-math -fomit-frame-pointer)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# for some reason this is necessary
|
# for some reason this is necessary
|
||||||
|
|
|
@ -79,7 +79,7 @@ else ifeq ($(platform), classic_armv7_a7)
|
||||||
TARGET := $(TARGET_NAME)_libretro.so
|
TARGET := $(TARGET_NAME)_libretro.so
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -shared -Wl,--no-undefined -fPIC
|
SHARED := -shared -Wl,--no-undefined -fPIC
|
||||||
CFLAGS += -Ofast \
|
CFLAGS += -O3 -ffast-math \
|
||||||
-flto=4 -fwhole-program -fuse-linker-plugin \
|
-flto=4 -fwhole-program -fuse-linker-plugin \
|
||||||
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
||||||
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||||
|
@ -112,7 +112,7 @@ else ifeq ($(platform), classic_armv8_a35)
|
||||||
fpic := -fPIC
|
fpic := -fPIC
|
||||||
SHARED := -shared
|
SHARED := -shared
|
||||||
TILED_RENDERING=1
|
TILED_RENDERING=1
|
||||||
CFLAGS += -Ofast \
|
CFLAGS += -O3 -ffast-math \
|
||||||
-flto=4 -fwhole-program -fuse-linker-plugin \
|
-flto=4 -fwhole-program -fuse-linker-plugin \
|
||||||
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
-fdata-sections -ffunction-sections -Wl,--gc-sections \
|
||||||
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
-fno-stack-protector -fno-ident -fomit-frame-pointer \
|
||||||
|
|
Loading…
Reference in New Issue