From b42e73480acb8d8d186517c8a9c01737982c0e1a Mon Sep 17 00:00:00 2001 From: Andy Killorin <37423245+Speedy6451@users.noreply.github.com> Date: Tue, 14 May 2024 13:51:26 -0500 Subject: [PATCH] fix spurious linking issue --- .cargo/config.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.cargo/config.toml b/.cargo/config.toml index d502ee5..d9defaf 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -3,6 +3,8 @@ target = "avr-specs/avr-atmega328p.json" [target.'cfg(target_arch = "avr")'] runner = "ravedude uno -cb 57600" +# Workaround for: https://github.com/rust-lang/compiler-builtins/issues/420 +rustflags = ["-C", "link-arg=-Wl,--allow-multiple-definition"] [unstable] build-std = ["core"]