Skip to content

Commit

Permalink
specs: Sync specs with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
hankertrix committed Sep 3, 2024
1 parent 08cd357 commit fb72a14
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions avr-specs/sync-from-upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,8 @@ def main():
spec.update(COMMON)
spec.update(settings)

gnu_cc_pre_link_args = spec["pre-link-args"]["gnu-cc"]
gnu_lld_cc_pre_link_args = spec["pre-link-args"]["gnu-lld-cc"]
for compiler in (gnu_cc_pre_link_args, gnu_lld_cc_pre_link_args):
compiler[0] = f"-mmcu={settings['cpu']}"
for pre_link_args in spec["pre-link-args"].values():
pre_link_args[0] = f"-mmcu={settings['cpu']}"

with open(f"avr-specs/avr-{mcu}.json", "w") as f:
json.dump(spec, f, sort_keys=True, indent=2)
Expand Down

0 comments on commit fb72a14

Please sign in to comment.