From f0b471d9bccfd9dae4392f468a680ae354a09f2f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sun, 3 Jun 2012 21:46:51 -0700 Subject: [PATCH] Optimize the iOS builds using -O2 (2/3 size). --- GNUmakefile.in | 2 +- ios.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index 471e1a2..770f384 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -178,7 +178,7 @@ inject += Mach/Inject.lo Mach/Inject.lo: Trampoline.t.hpp Baton.hpp %.t.lo: %.t.cpp Baton.hpp Trampoline.hpp - $(libtool) --mode=compile $(cxx) $(cflags) -c -o $@ $< -fno-stack-protector -fno-exceptions + $(libtool) --mode=compile $(cxx) $(cflags) -c -o $@ $< -fno-stack-protector -fno-exceptions -O0 %.t.hpp: %.t.lo trampoline.sh $(srcdir)/trampoline.sh $@ .libs/lib$*.t.$(dll) $* $(sed) $(otool) $(lipo) $(nm) $(libtool) --mode=link $(cxx) $(ldflags) -o lib$*.t.la $< -rpath $(libdir) -Xcompiler -nostdlib diff --git a/ios.sh b/ios.sh index 4c19bd0..c09d64c 100755 --- a/ios.sh +++ b/ios.sh @@ -42,7 +42,7 @@ flags_armv6+=(-F"${sdk}"/System/Library/PrivateFrameworks) flags_armv6+=(-framework WebCore) -flags=() +flags=(-O2) for flag in "${flags_armv6[@]}"; do flags+=(-Xarch_armv6 "${flag}") done -- 2.49.0