diff options
author | Simon Warta <[email protected]> | 2017-04-25 23:54:00 +0200 |
---|---|---|
committer | Simon Warta <[email protected]> | 2017-04-25 23:54:00 +0200 |
commit | 66d3927239b8b04a947c7724d4fa7141cccf0295 (patch) | |
tree | de6084da56b6279491e7edb2fb5adb8877d02e9c /configure.py | |
parent | f2f515b3f8124d029ec452c1698254768e5d28f7 (diff) |
Run --list-modules after options are checked
Diffstat (limited to 'configure.py')
-rwxr-xr-x | configure.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.py b/configure.py index 979f454c1..996ae755c 100755 --- a/configure.py +++ b/configure.py @@ -424,7 +424,7 @@ def process_command_line(args): # pylint: disable=too-many-locals help='disable specific modules') mods_group.add_option('--list-modules', dest='list_modules', action='store_true', - help='list available modules') + help='list available modules and exit') mods_group.add_option('--no-autoload', action='store_true', default=False, help=optparse.SUPPRESS_HELP) mods_group.add_option('--minimized-build', action='store_true', dest='no_autoload', @@ -2718,15 +2718,15 @@ def main(argv=None): [x for (x, _) in ainfo.all_submodels()] for ainfo in info_arch.values()])))) + set_defaults_for_unset_options(options, info_arch, info_cc) + canonicalize_options(options, info_os, info_arch) + validate_options(options, info_os, info_cc, module_policies) + if options.list_modules: for k in sorted(modules.keys()): print(k) sys.exit(0) - set_defaults_for_unset_options(options, info_arch, info_cc) - canonicalize_options(options, info_os, info_arch) - validate_options(options, info_os, info_cc, module_policies) - logging.info('Target is %s-%s-%s-%s' % ( options.compiler, options.os, options.arch, options.cpu)) |