diff options
author | Max Kellermann <max@musicpd.org> | 2018-01-19 11:18:45 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2018-01-19 12:33:28 +0100 |
commit | fcaedec2ab027971fdb342d257c4af6d3560edde (patch) | |
tree | 81b22aae197aadb03aff018ce4dcac01c77fab4a /android/build.py | |
parent | ead9d59e8805890c129e545f1b20776eb1a48838 (diff) |
{android,win32}/build.py: move "-O* -g" to common_flags
Diffstat (limited to 'android/build.py')
-rwxr-xr-x | android/build.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/android/build.py b/android/build.py index edabccf01..393f1d7da 100755 --- a/android/build.py +++ b/android/build.py @@ -65,7 +65,8 @@ class AndroidNdkToolchain: llvm_path = os.path.join(ndk_path, 'toolchains', 'llvm', 'prebuilt', build_arch) llvm_triple = 'armv7-none-linux-androideabi' - common_flags = '-march=armv7-a -mfloat-abi=softfp' + common_flags = '-Os -g' + common_flags += ' -march=armv7-a -mfloat-abi=softfp' toolchain_bin = os.path.join(toolchain_path, 'bin') llvm_bin = os.path.join(llvm_path, 'bin') @@ -80,8 +81,8 @@ class AndroidNdkToolchain: self.nm = os.path.join(toolchain_bin, arch + '-nm') self.strip = os.path.join(toolchain_bin, arch + '-strip') - self.cflags = '-Os -g ' + common_flags - self.cxxflags = '-Os -g ' + common_flags + self.cflags = common_flags + self.cxxflags = common_flags self.cppflags = '--sysroot=' + sysroot + \ ' -isystem ' + os.path.join(install_prefix, 'include') + \ ' -isystem ' + os.path.join(sysroot, 'usr', 'include', arch) + \ |