Skip to content

Commit

Permalink
Fix target_env in avr-unknown-gnu-atmega328
Browse files Browse the repository at this point in the history
The target name itself contains GNU, we should set that in the
environment as well.
  • Loading branch information
madsmtm committed Oct 2, 2024
1 parent 44722bd commit 033fdda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compiler/rustc_target/src/spec/base/avr_gnu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pub(crate) fn target(target_cpu: &'static str, mmcu: &'static str) -> Target {
llvm_target: "avr-unknown-unknown".into(),
pointer_width: 16,
options: TargetOptions {
env: "gnu".into(),

c_int_width: "16".into(),
cpu: target_cpu.into(),
exe_suffix: ".elf".into(),
Expand Down

0 comments on commit 033fdda

Please sign in to comment.