diff options
author | Nick Brassel <[email protected]> | 2025-09-10 02:35:01 +1000 |
---|---|---|
committer | GitHub <[email protected]> | 2025-09-09 17:35:01 +0100 |
commit | f6f627d07fe6acf54e88bfba2e41688e3eb58444 (patch) | |
tree | 9ef8400ba5ce0e86551efbb9dae7ad531814d867 /lib/python/qmk/cli/userspace/compile.py | |
parent | 4fc14c2712b149e37673ed3130377778336f6447 (diff) | |
download | qmk_firmware-f6f627d07fe6acf54e88bfba2e41688e3eb58444.tar.gz qmk_firmware-f6f627d07fe6acf54e88bfba2e41688e3eb58444.zip |
Print build failures with `qmk mass-compile` and `qmk userspace-compile` if requested (`-p`/`--print-failures`) (#25518)
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): @cli.argument('-j', '--parallel', type=int, default=1, help="Set the number of parallel make jobs; 0 means unlimited.") @cli.argument('-c', '--clean', arg_only=True, action='store_true', help="Remove object files before compiling.") @cli.argument('-n', '--dry-run', arg_only=True, action='store_true', help="Don't actually build, just show the commands to be run.") [email protected]('-p', '--print-failures', arg_only=True, action='store_true', help="Print failed builds.") @cli.argument('-e', '--env', arg_only=True, action='append', default=[], help="Set a variable to be passed to make. May be passed multiple times.") @cli.subcommand('Compiles the build targets specified in userspace `qmk.json`.') def userspace_compile(cli): @@ -42,4 +43,4 @@ def userspace_compile(cli): if len(keyboard_keymap_targets) > 0: build_targets.extend(search_keymap_targets(keyboard_keymap_targets)) - 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)) + 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)) |