diff options
Diffstat (limited to 'lib/python/qmk/cli/userspace/compile.py')
| -rw-r--r-- | lib/python/qmk/cli/userspace/compile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/qmk/cli/userspace/compile.py b/lib/python/qmk/cli/userspace/compile.py index f164ca2ef1..64fa3ed0c9 100644 --- a/lib/python/qmk/cli/userspace/compile.py +++ b/lib/python/qmk/cli/userspace/compile.py | |||
| @@ -20,6 +20,7 @@ def _extra_arg_setter(target, extra_args): | |||
| 20 | @cli.argument('-j', '--parallel', type=int, default=1, help="Set the number of parallel make jobs; 0 means unlimited.") | 20 | @cli.argument('-j', '--parallel', type=int, default=1, help="Set the number of parallel make jobs; 0 means unlimited.") |
| 21 | @cli.argument('-c', '--clean', arg_only=True, action='store_true', help="Remove object files before compiling.") | 21 | @cli.argument('-c', '--clean', arg_only=True, action='store_true', help="Remove object files before compiling.") |
| 22 | @cli.argument('-n', '--dry-run', arg_only=True, action='store_true', help="Don't actually build, just show the commands to be run.") | 22 | @cli.argument('-n', '--dry-run', arg_only=True, action='store_true', help="Don't actually build, just show the commands to be run.") |
| 23 | @cli.argument('-p', '--print-failures', arg_only=True, action='store_true', help="Print failed builds.") | ||
| 23 | @cli.argument('-e', '--env', arg_only=True, action='append', default=[], help="Set a variable to be passed to make. May be passed multiple times.") | 24 | @cli.argument('-e', '--env', arg_only=True, action='append', default=[], help="Set a variable to be passed to make. May be passed multiple times.") |
| 24 | @cli.subcommand('Compiles the build targets specified in userspace `qmk.json`.') | 25 | @cli.subcommand('Compiles the build targets specified in userspace `qmk.json`.') |
| 25 | def userspace_compile(cli): | 26 | def userspace_compile(cli): |
| @@ -42,4 +43,4 @@ def userspace_compile(cli): | |||
| 42 | if len(keyboard_keymap_targets) > 0: | 43 | if len(keyboard_keymap_targets) > 0: |
| 43 | build_targets.extend(search_keymap_targets(keyboard_keymap_targets)) | 44 | build_targets.extend(search_keymap_targets(keyboard_keymap_targets)) |
| 44 | 45 | ||
| 45 | return mass_compile_targets(list(set(build_targets)), cli.args.clean, cli.args.dry_run, cli.config.userspace_compile.no_temp, cli.config.userspace_compile.parallel, **build_environment(cli.args.env)) | 46 | return mass_compile_targets(list(set(build_targets)), cli.args.clean, cli.args.dry_run, cli.config.userspace_compile.no_temp, cli.config.userspace_compile.parallel, cli.args.print_failures, **build_environment(cli.args.env)) |
