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/osx | |
parent | 942f5f0cb282cbc2b3fb766e3c7614e82b98dd9b (diff) |
Allow to not optimize release build
Diffstat (limited to 'platform/osx')
-rw-r--r-- | platform/osx/detect.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/detect.py b/platform/osx/detect.py index c39a4426be..5b320da82f 100644 --- a/platform/osx/detect.py +++ b/platform/osx/detect.py @@ -50,7 +50,7 @@ def configure(env): if env["target"] == "release": if env["optimize"] == "speed": # optimize for speed (default) env.Prepend(CCFLAGS=["-O3", "-fomit-frame-pointer", "-ftree-vectorize"]) - else: # optimize for size + elif env["optimize"] == "size": # optimize for size env.Prepend(CCFLAGS=["-Os", "-ftree-vectorize"]) if env["arch"] != "arm64": env.Prepend(CCFLAGS=["-msse2"]) @@ -61,7 +61,7 @@ def configure(env): elif env["target"] == "release_debug": if env["optimize"] == "speed": # optimize for speed (default) env.Prepend(CCFLAGS=["-O2"]) - else: # optimize for size + elif env["optimize"] == "size": # optimize for size env.Prepend(CCFLAGS=["-Os"]) env.Prepend(CPPDEFINES=["DEBUG_ENABLED"]) if env["debug_symbols"]: |