Skip to content

Commit 033fdda

Browse files
committed
Fix target_env in avr-unknown-gnu-atmega328
The target name itself contains GNU, we should set that in the environment as well.
1 parent 44722bd commit 033fdda

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎compiler/rustc_target/src/spec/base/avr_gnu.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ pub(crate) fn target(target_cpu: &'static str, mmcu: &'static str) -> Target {
1919
llvm_target:"avr-unknown-unknown".into(),
2020
pointer_width:16,
2121
options:TargetOptions{
22+
env:"gnu".into(),
23+
2224
c_int_width:"16".into(),
2325
cpu: target_cpu.into(),
2426
exe_suffix:".elf".into(),

0 commit comments

Comments
 (0)