From f192813d8465a700a951c9dee8319ef4d8446b35 Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Fri, 22 Dec 2023 06:52:33 -0800 Subject: [PATCH] Tweak symbol name for RISC-V in build script --- build.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index 2be48ca..307c6d2 100644 --- a/build.rs +++ b/build.rs @@ -24,7 +24,7 @@ fn main() -> Result<(), Box> { let arch = match chip { "esp32" | "esp32s2" | "esp32s3" => "xtensa", - _ => "riscv32", + _ => "riscv", }; // Define configuration symbols: @@ -63,7 +63,7 @@ fn main() -> Result<(), Box> { // The RISC-V devices additionally require the `hal-defaults.x` linker // script from `esp-hal`, to avoid interrupt-related linker errors: - if arch == "riscv32" { + if arch == "riscv" { println!("cargo:rustc-link-arg=-Thal-defaults.x"); }