diff options
author | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-03-13 15:29:55 +0100 |
---|---|---|
committer | Rafał Mikrut <mikrutrafal@protonmail.com> | 2021-03-14 15:51:05 +0100 |
commit | 0b298d201e6010daff369821951c67fbb4e63a10 (patch) | |
tree | 339bf5d4ca0f4e0b6ea95c45dcc4394adcb4963a /platform/android | |
parent | 942f5f0cb282cbc2b3fb766e3c7614e82b98dd9b (diff) |
Allow to not optimize release build
Diffstat (limited to 'platform/android')
-rw-r--r-- | platform/android/detect.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py index 5f0fcc9b77..996b6dcf41 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -197,12 +197,11 @@ def configure(env): if env["optimize"] == "speed": # optimize for speed (default) env.Append(LINKFLAGS=["-O2"]) env.Append(CCFLAGS=["-O2", "-fomit-frame-pointer"]) - env.Append(CPPDEFINES=["NDEBUG"]) - else: # optimize for size + elif env["optimize"] == "size": # optimize for size env.Append(CCFLAGS=["-Os"]) - env.Append(CPPDEFINES=["NDEBUG"]) env.Append(LINKFLAGS=["-Os"]) + env.Append(CPPDEFINES=["NDEBUG"]) if can_vectorize: env.Append(CCFLAGS=["-ftree-vectorize"]) if env["target"] == "release_debug": |