Skip to content

Commit

Permalink
specs: Bring sync script in line with target requirements
Browse files Browse the repository at this point in the history
Fixup the remaining little bits so the sync-script generates the exact
same targets we currently use.

Signed-off-by: Rahix <[email protected]>
  • Loading branch information
Rahix committed Oct 9, 2020
1 parent 2afdb60 commit bad9277
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions avr-specs/sync-from-upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
}

COMMON = {
# needed because we currently rely on avr-libc
"no-default-libraries": False,
# 8-bit operations on AVR are atomic
"max-atomic-width": 8,
}


Expand Down Expand Up @@ -61,6 +64,9 @@ def main():

upstream_spec = json.loads(upstream_spec_string)

# our targets are of course not built into rustc
del upstream_spec["is-builtin"]

for mcu, settings in SPECS.items():
spec = copy.deepcopy(upstream_spec)
spec.update(COMMON)
Expand Down

0 comments on commit bad9277

Please sign in to comment.