From 42f66adbf27f54f54dacb4015298d19b4e6714b8 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Sun, 8 Sep 2024 06:10:38 -0400 Subject: [PATCH] iOS/tvOS: minor compiler flag optimization/cleanup (#16974) --- pkg/apple/BaseConfig.xcconfig | 3 +++ pkg/apple/RetroArch_iOS13.xcodeproj/project.pbxproj | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pkg/apple/BaseConfig.xcconfig b/pkg/apple/BaseConfig.xcconfig index 3bfe049e34..d88881a062 100644 --- a/pkg/apple/BaseConfig.xcconfig +++ b/pkg/apple/BaseConfig.xcconfig @@ -74,6 +74,8 @@ OTHER_CFLAGS = $(inherited) -DINLINE=inline OTHER_CFLAGS = $(inherited) -DRARCH_INTERNAL OTHER_CFLAGS = $(inherited) -DRC_DISABLE_LUA OTHER_CFLAGS = $(inherited) -DWANT_GLSLANG +OTHER_CFLAGS = $(inherited) -DWANT_RAW_DATA_SECTOR=1 +OTHER_CFLAGS = $(inherited) -DWANT_SUBCODE=1 OTHER_CFLAGS = $(inherited) -D_7ZIP_ST OTHER_CFLAGS = $(inherited) -D__LIBRETRO__ @@ -81,6 +83,7 @@ OTHER_CFLAGS[arch=x86_64] = $(inherited) -DHAVE_SSE OTHER_CFLAGS[arch=arm64*] = $(inherited) -D__ARM_NEON__ -DHAVE_NEON OTHER_CFLAGS[sdk=macosx*] = $(inherited) -DFLAC__HAS_OGG=0 +OTHER_CFLAGS[sdk=macosx*] = $(inherited) -DGL_SILENCE_DEPRECATION OTHER_CFLAGS[sdk=macosx*] = $(inherited) -DHAVE_COMMAND OTHER_CFLAGS[sdk=macosx*] = $(inherited) -DHAVE_COREAUDIO3 OTHER_CFLAGS[sdk=macosx*] = $(inherited) -DHAVE_DISCORD diff --git a/pkg/apple/RetroArch_iOS13.xcodeproj/project.pbxproj b/pkg/apple/RetroArch_iOS13.xcodeproj/project.pbxproj index e9053c0ab1..75fcb7fe13 100644 --- a/pkg/apple/RetroArch_iOS13.xcodeproj/project.pbxproj +++ b/pkg/apple/RetroArch_iOS13.xcodeproj/project.pbxproj @@ -1930,6 +1930,7 @@ DEVELOPMENT_TEAM = UK699V5ZS8; GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; + GCC_FAST_MATH = YES; GCC_NO_COMMON_BLOCKS = YES; GCC_OPTIMIZATION_LEVEL = 0; GCC_SYMBOLS_PRIVATE_EXTERN = NO; @@ -1947,6 +1948,7 @@ "$(PROJECT_DIR)/iOS/modules", "@executable_path/Frameworks", ); + LLVM_LTO = YES_THIN; MARKETING_VERSION = 1.19.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; @@ -1991,8 +1993,9 @@ DEVELOPMENT_TEAM = UK699V5ZS8; ENABLE_NS_ASSERTIONS = NO; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_FAST_MATH = YES; GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 3; + GCC_OPTIMIZATION_LEVEL = fast; GCC_WARN_ABOUT_RETURN_TYPE = YES; GCC_WARN_UNDECLARED_SELECTOR = YES; GCC_WARN_UNINITIALIZED_AUTOS = YES; @@ -2007,6 +2010,7 @@ "$(PROJECT_DIR)/iOS/modules", "@executable_path/Frameworks", ); + LLVM_LTO = YES_THIN; MARKETING_VERSION = 1.19.1; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES;