diff options
author | Dan Albert <danalbert@google.com> | 2015-09-23 11:00:55 -0700 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2015-09-23 11:00:55 -0700 |
commit | f3f2078be2430cd37493a560fd481b08f7712eb6 (patch) | |
tree | fbcfcea1c521e936dfc0c745f1bd227a40d40e1b /checkbuild.py | |
parent | d635836b69953d91568a686f5613b1787dc3e1bd (diff) | |
download | ndk-f3f2078be2430cd37493a560fd481b08f7712eb6.tar.gz |
Default to not building GCC.
This now has its own build on the build server, and the GCC we build
here is not the one we'll package or test with.
Change-Id: I15762543072e06860ff322101700603f9420686c
Diffstat (limited to 'checkbuild.py')
-rw-r--r-- | checkbuild.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/checkbuild.py b/checkbuild.py index 4df9f9097..4a0418146 100644 --- a/checkbuild.py +++ b/checkbuild.py @@ -60,7 +60,7 @@ class ArgParser(argparse.ArgumentParser): self.add_argument( '--package', action='store_true', dest='package', default=True, - help='Package the NDK when done building.') + help='Package the NDK when done building (default).') self.add_argument( '--no-package', action='store_false', dest='package', help='Do not package the NDK when done building.') @@ -93,9 +93,13 @@ class ArgParser(argparse.ArgumentParser): '--host-only', action='store_true', help='Skip building target components.') - module_group.add_argument( - '--skip-gcc', action='store_true', - help='Skip building and packaging GCC.') + gcc_group = module_group.add_mutually_exclusive_group() + gcc_group.add_argument( + '--skip-gcc', action='store_true', default=True, + help='Skip building and packaging GCC (default).') + gcc_group.add_argument( + '--no-skip-gcc', action='store_false', dest='skip_gcc', + help='Build and package GCC.') def _invoke_build(script, args): @@ -266,19 +270,18 @@ def main(): os.makedirs(out_dir) if args.module is None: - modules = ALL_MODULES + modules = ALL_MODULES - {'gcc'} else: modules = {args.module} if args.host_only: modules = { 'clang', - 'gcc', 'host-tools', } - if args.skip_gcc: - modules = modules - {'gcc'} + if not args.skip_gcc: + modules |= {'gcc'} if args.arch is not None: package_args.append('--arch={}'.format(args.arch)) @@ -301,7 +304,8 @@ def main(): for module in modules: module_builds[module](out_dir, args) - if args.package and modules == ALL_MODULES: + required_package_modules = ALL_MODULES - {'gcc'} + if args.package and required_package_modules <= modules: package_ndk(args.release, system, out_dir, package_args) |