Skip to content

Create a generic AVR target: avr-none #131651

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 21, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
avr-rjmp-offset: Explain .target_cpu()
  • Loading branch information
Patryk27 committed Feb 20, 2025
commit d5128f92745774a93cd4384a71c7df727bc87377
4 changes: 4 additions & 0 deletions tests/run-make/avr-rjmp-offset/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ fn main() {
.opt_level("s")
.panic("abort")
.target("avr-none")
// rust-lld has some troubles understanding the -mmcu flag, so for the
// time being let's tell rustc to emit binary that's compatible with the
// target CPU that lld defaults to, i.e. just `avr` (that's simply the
// minimal common instruction set across all AVRs)
.target_cpu("avr")
// normally one links with `avr-gcc`, but this is not available in CI,
// hence this test diverges from the default behavior to enable linking
Expand Down
Loading