Skip to content
Permalink
Browse files

Android (and libretro): Turn off -ffast-math. Fixes #11880.

  • Loading branch information...
hrydgard committed Mar 13, 2019
1 parent f316a65 commit 536d61796a45ea48564c154e1d1db3f9038b8683
Showing with 1 addition and 3 deletions.
  1. +0 −2 CMakeLists.txt
  2. +1 −1 libretro/jni/Android.mk
@@ -270,8 +270,6 @@ if(NOT MSVC)
add_compile_options(-fno-strict-aliasing)
if(${CMAKE_C_COMPILER_ID} STREQUAL "Intel")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -parallel -fopenmp")
else()
add_compile_options(-ffast-math)
endif()

if(X86 OR X86_64)
@@ -74,7 +74,7 @@ include $(CORE_DIR)/libretro/Makefile.common
COREFLAGS += -DINLINE="inline" -DPPSSPP -DUSE_FFMPEG -DMOBILE_DEVICE -DBAKE_IN_GIT -DDYNAREC -D__LIBRETRO__ -DUSING_GLES2 -D__STDC_CONSTANT_MACROS -DGLEW_NO_GLU $(INCFLAGS)
LOCAL_SRC_FILES = $(SOURCES_CXX) $(SOURCES_C) $(ASMFILES)
LOCAL_CPPFLAGS := -Wall -std=gnu++11 $(COREFLAGS) -DSPIRV_CROSS_EXCEPTIONS_TO_ASSERTIONS
LOCAL_CFLAGS := -O2 -ffast-math -DANDROID $(COREFLAGS)
LOCAL_CFLAGS := -O2 -DANDROID $(COREFLAGS)
LOCAL_LDLIBS += -lz -llog -lGLESv2 -lEGL -latomic
LOCAL_STATIC_LIBRARIES += $(FFMPEGLIBS)

0 comments on commit 536d617

Please sign in to comment.
You can’t perform that action at this time.