From f59c0b4bded4f26de4a1928038e6f03df204b2ca Mon Sep 17 00:00:00 2001 From: James Zern Date: Sat, 26 Jul 2014 20:40:51 -0700 Subject: [PATCH] iosbuild.sh: specify optimization flags explicitly set '-O3 -DNDEBUG'. setting CFLAGS on the command line overrides the default, resulting in -O0. Change-Id: I213979f646b1444b1d8e0eb0bb58e9b2c3cc4dd3 --- iosbuild.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iosbuild.sh b/iosbuild.sh index 0094fded..306f955f 100755 --- a/iosbuild.sh +++ b/iosbuild.sh @@ -72,7 +72,7 @@ for PLATFORM in ${PLATFORMS}; do mkdir -p "${ROOTDIR}" SDKROOT="${PLATFORMSROOT}/${PLATFORM}.platform/Developer/SDKs/${PLATFORM}${SDK}.sdk/" - CFLAGS="-arch ${ARCH2:-${ARCH}} -pipe -isysroot ${SDKROOT}" + CFLAGS="-arch ${ARCH2:-${ARCH}} -pipe -isysroot ${SDKROOT} -O3 -DNDEBUG" LDFLAGS="-arch ${ARCH2:-${ARCH}} -pipe -isysroot ${SDKROOT}" if [[ -z "${XCODE}" ]]; then