diff options
| author | Mads Marquart <mads@marquart.dk> | 2024-10-02 20:30:51 +0200 |
|---|---|---|
| committer | Mads Marquart <mads@marquart.dk> | 2024-10-02 20:30:51 +0200 |
| commit | 033fdda46c55ece534fdd5aabf0c1e70bb73b1ee (patch) | |
| tree | f56fdf2d2b5e15f00943462cf13fe5430a3f23b5 | |
| parent | 44722bd9ba50426191f78d12138a2ae1a12affe7 (diff) | |
| download | rust-033fdda46c55ece534fdd5aabf0c1e70bb73b1ee.tar.gz rust-033fdda46c55ece534fdd5aabf0c1e70bb73b1ee.zip | |
Fix target_env in avr-unknown-gnu-atmega328
The target name itself contains GNU, we should set that in the environment as well.
| -rw-r--r-- | compiler/rustc_target/src/spec/base/avr_gnu.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_target/src/spec/base/avr_gnu.rs b/compiler/rustc_target/src/spec/base/avr_gnu.rs index fb97738618b..4f348af21ad 100644 --- a/compiler/rustc_target/src/spec/base/avr_gnu.rs +++ b/compiler/rustc_target/src/spec/base/avr_gnu.rs @@ -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(), |
