diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-11 19:25:22 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-12 16:52:05 +0200 |
commit | 2bf983e6382f5236948f7740faf130a3568f9dd0 (patch) | |
tree | 6e877051c4b419eee813aabcd47f77129bfcf00c /tools/android.py | |
parent | 024b6d2d9e6bb6ed8b2c1641330ae444e6c6ba7a (diff) | |
download | redot-cpp-2bf983e6382f5236948f7740faf130a3568f9dd0.tar.gz |
[SCons] Add "optimize" and "debug_symbols" options
optimize = auto|none|debug|speed|size|0|1|2|3
debug_symbol = True|False
optimize == "auto" will produce:
- "debug" for "debug" builds
- "speed" for "release" builds
Diffstat (limited to 'tools/android.py')
-rw-r--r-- | tools/android.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/android.py b/tools/android.py index e96f9e6..720ff2d 100644 --- a/tools/android.py +++ b/tools/android.py @@ -96,11 +96,6 @@ def generate(env): env.Append( CCFLAGS=["--target=" + arch_info["target"] + env["android_api_level"], "-march=" + arch_info["march"], "-fPIC"] - ) # , '-fPIE', '-fno-addrsig', '-Oz']) + ) env.Append(CCFLAGS=arch_info["ccflags"]) env.Append(LINKFLAGS=["--target=" + arch_info["target"] + env["android_api_level"], "-march=" + arch_info["march"]]) - - if env["target"] == "debug": - env.Append(CCFLAGS=["-Og", "-g"]) - elif env["target"] == "release": - env.Append(CCFLAGS=["-O3"]) |