Skip to content

Commit

Permalink
Commentary.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Oct 9, 2023
1 parent 24cfc17 commit 5c68b61
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/python/qmk/build_targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,10 @@ def prepare_build(self, build_target: str = None, dry_run: bool = False, **env_v

def compile_command(self, build_target: str = None, dry_run: bool = False, **env_vars) -> List[str]:
compile_args = self._common_make_args(dry_run=dry_run, build_target=build_target)

for key, value in env_vars.items():
compile_args.append(f'{key}={value}')

return compile_args


Expand Down Expand Up @@ -162,7 +164,8 @@ def prepare_build(self, build_target: str = None, dry_run: bool = False, **env_v
if old_content == new_content:
new_content = None

# Write the keymap.json file if different
# Write the keymap.json file if different so timestamps are only updated
# if the content changes -- running `make` won't treat it as modified.
if new_content:
self._keymap_json.write_text(new_content, encoding='utf-8')

Expand Down

0 comments on commit 5c68b61

Please sign in to comment.