1
Fork 0

Create a generic AVR target: avr-none

This commit removes the `avr-unknown-gnu-atmega328` target and replaces
it with a more generic `avr-none` variant that must be specialized with
the `-C target-cpu` flag (e.g. `-C target-cpu=atmega328p`).
This commit is contained in:
Patryk Wychowaniec 2024-10-13 14:58:44 +02:00
parent ed49386d3a
commit 78ddabf31d
No known key found for this signature in database
GPG key ID: F62547D075E09767
19 changed files with 156 additions and 60 deletions

View file

@ -1,4 +1,4 @@
//@ compile-flags: -Copt-level=3 --target=avr-unknown-gnu-atmega328 --crate-type=rlib -C panic=abort
//@ compile-flags: -Copt-level=3 --target=avr-none -C target-cpu=atmega328p --crate-type=rlib -C panic=abort
//@ needs-llvm-components: avr
// This test validates that function pointers can be stored in global variables