summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2014-07-26 20:40:51 -0700
committerJames Zern <jzern@google.com>2014-07-26 20:40:51 -0700
commitf59c0b4bded4f26de4a1928038e6f03df204b2ca (patch)
treec8f5196e5f7b50c67935d3f61b3ec755b7dea789
parent8d34ea3e36ac288feeb826c6f73e419876fa8033 (diff)
downloadlibwebp-f59c0b4bded4f26de4a1928038e6f03df204b2ca.tar.gz
iosbuild.sh: specify optimization flags
explicitly set '-O3 -DNDEBUG'. setting CFLAGS on the command line overrides the default, resulting in -O0. Change-Id: I213979f646b1444b1d8e0eb0bb58e9b2c3cc4dd3
-rwxr-xr-xiosbuild.sh2
1 files changed, 1 insertions, 1 deletions
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