diff options
author | Juan Linietsky <reduzio@gmail.com> | 2018-07-21 17:26:14 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2018-07-21 17:26:49 -0300 |
commit | 2b9902db06d922fc98ae49c0d1e31123feed469a (patch) | |
tree | 40cf433aedb97526053dbdeb192250ceedbe903e /platform/iphone/detect.py | |
parent | cfcb6e11f25adb13177ba08777263288a5ec6f61 (diff) | |
download | redot-engine-2b9902db06d922fc98ae49c0d1e31123feed469a.tar.gz |
-Fix disable_3d flag
-Add extra flag optimize=[size,speed] to be able to prioritize size
Diffstat (limited to 'platform/iphone/detect.py')
-rw-r--r-- | platform/iphone/detect.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py index 25674c2b47..b13a1e9643 100644 --- a/platform/iphone/detect.py +++ b/platform/iphone/detect.py @@ -47,8 +47,12 @@ def configure(env): if (env["target"].startswith("release")): env.Append(CPPFLAGS=['-DNDEBUG', '-DNS_BLOCK_ASSERTIONS=1']) - env.Append(CPPFLAGS=['-O2', '-ftree-vectorize', '-fomit-frame-pointer', '-ffast-math', '-funsafe-math-optimizations']) - env.Append(LINKFLAGS=['-O2']) + if (env["optimize"] == "speed"): #optimize for speed (default) + env.Append(CPPFLAGS=['-O2', '-ftree-vectorize', '-fomit-frame-pointer', '-ffast-math', '-funsafe-math-optimizations']) + env.Append(LINKFLAGS=['-O2']) + else: #optimize for size + env.Append(CPPFLAGS=['-Os', '-ftree-vectorize']) + env.Append(LINKFLAGS=['-Os']) if env["target"] == "release_debug": env.Append(CPPFLAGS=['-DDEBUG_ENABLED']) |