Fix 'qmk compile' mass_compile execution (#23296)

This commit is contained in:
Joel Challis 2024-03-31 12:23:40 +01:00 committed by GitHub
parent e9f187f612
commit 319d9aa7b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,17 +41,17 @@ def compile(cli):
cli.args.filter = [] cli.args.filter = []
cli.config.mass_compile.keymap = cli.config.compile.keymap cli.config.mass_compile.keymap = cli.config.compile.keymap
cli.config.mass_compile.parallel = cli.config.compile.parallel cli.config.mass_compile.parallel = cli.config.compile.parallel
cli.config.mass_compile.no_temp = False cli.args.no_temp = False
return mass_compile(cli) return mass_compile(cli)
# If we've received `-km all`, reroute it to mass-compile. # If we've received `-km all`, reroute it to mass-compile.
if cli.args.keymap == 'all': if cli.args.keymap == 'all':
from .mass_compile import mass_compile from .mass_compile import mass_compile
cli.args.builds = [f'{cli.args.keyboard}:all'] cli.args.builds = [f'{cli.config.compile.keyboard}:all']
cli.args.filter = [] cli.args.filter = []
cli.config.mass_compile.keymap = None cli.config.mass_compile.keymap = None
cli.config.mass_compile.parallel = cli.config.compile.parallel cli.config.mass_compile.parallel = cli.config.compile.parallel
cli.config.mass_compile.no_temp = False cli.args.no_temp = False
return mass_compile(cli) return mass_compile(cli)
# Build the environment vars # Build the environment vars