diff options
author | Dan Albert <danalbert@google.com> | 2018-11-14 14:25:17 -0800 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2018-11-14 14:25:17 -0800 |
commit | d42268bd795ae78a45e6a225ee77c5617777223a (patch) | |
tree | 7dad8ace43cf1d940fd74ab15f100128800864e4 | |
parent | 19a85198bf8e119b16d07ec823183f47a144a2e8 (diff) | |
download | binutils-d42268bd795ae78a45e6a225ee77c5617777223a.tar.gz |
Set -O2 by default for binutils.ndk-r20bndk-r20-beta3ndk-r20-beta2ndk-r20-beta1ndk-r20android-o-mr1-iot-release-1.0.8android-o-mr1-iot-release-1.0.7android-o-mr1-iot-release-1.0.10android-n-iot-release-ihome-igv1nougat-iot-releasendk-release-r20
Apparently their build scripts do not do this automatically.
Test: ./build.py --arch arm64 --host linux
Bug: https://issuetracker.google.com/118423828
Change-Id: I5bee38c76152b8b67360c61277b996b7ba3eee9e
-rwxr-xr-x | do_build.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/do_build.py b/do_build.py index 9e0b41ce..32a3a9f2 100755 --- a/do_build.py +++ b/do_build.py @@ -140,13 +140,13 @@ def configure(arch, host, install_dir, src_dir): env['CXX'] = cxx env['STRIP'] = strip if m32: - env['CFLAGS'] = '-m32' - env['CXXFLAGS'] = '-m32' - env['LDFLAGS'] = '-m32' + env['CFLAGS'] = '-O2 -m32' + env['CXXFLAGS'] = '-O2 -m32' + env['LDFLAGS'] = '-O2 -m32' else: - env['CFLAGS'] = '-m64' - env['CXXFLAGS'] = '-m64' - env['LDFLAGS'] = '-m64' + env['CFLAGS'] = '-O2 -m64' + env['CXXFLAGS'] = '-O2 -m64' + env['LDFLAGS'] = '-O2 -m64' env_args = ['env'] + ['='.join([k, v]) for k, v in env.items()] check_call(env_args + configure_args) |