aboutsummaryrefslogtreecommitdiff
path: root/tools/build_all_configs.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build_all_configs.py')
-rwxr-xr-xtools/build_all_configs.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/tools/build_all_configs.py b/tools/build_all_configs.py
index 95fe04418..c1e22a043 100755
--- a/tools/build_all_configs.py
+++ b/tools/build_all_configs.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python3
+#!/usr/bin/env python
# Copyright (C) 2017 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,8 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import absolute_import
-from __future__ import division
from __future__ import print_function
import argparse
@@ -35,11 +33,11 @@ MAC_BUILD_CONFIGS = {
ANDROID_BUILD_CONFIGS = {
'android_debug': ('target_os="android"', 'is_clang=true', 'is_debug=true'),
- 'android_release':
- ('target_os="android"', 'is_clang=true', 'is_debug=false'),
- 'android_release_incl_heapprofd':
- ('target_os="android"', 'is_clang=true', 'is_debug=false',
- 'extra_cflags="-funwind-tables"', 'android_api_level=29'),
+ 'android_release': ('target_os="android"', 'is_clang=true',
+ 'is_debug=false'),
+ 'android_release_incl_heapprofd': ('target_os="android"', 'is_clang=true',
+ 'is_debug=false',
+ 'android_api_level=26'),
'android_asan': ('target_os="android"', 'is_clang=true', 'is_debug=false',
'is_asan=true'),
'android_lsan': ('target_os="android"', 'is_clang=true', 'is_debug=false',
@@ -72,8 +70,6 @@ def main():
parser.add_argument('--ccache', action='store_true', default=False)
parser.add_argument('--host-only', action='store_true', default=False)
parser.add_argument('--android', action='store_true', default=False)
- parser.add_argument(
- '--export-compile-commands', action="store_true", default=False)
parser.add_argument('--build', metavar='TARGET')
args = parser.parse_args()
@@ -117,8 +113,6 @@ def main():
if not os.path.isdir(out_dir):
os.mkdir(out_dir)
gn_cmd = (gn, 'gen', out_dir, '--args=%s' % (' '.join(gn_args)), '--check')
- if args.export_compile_commands:
- gn_cmd += ('--export-compile-commands',)
print(' '.join(quote(c) for c in gn_cmd))
subprocess.check_call(gn_cmd, cwd=ROOT_DIR)
if args.build: