Skip to content

Commit

Permalink
Tweak symbol name for RISC-V in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
jessebraham committed Dec 22, 2023
1 parent 2bdb3af commit f192813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fn main() -> Result<(), Box<dyn Error>> {

let arch = match chip {
"esp32" | "esp32s2" | "esp32s3" => "xtensa",
_ => "riscv32",
_ => "riscv",
};

// Define configuration symbols:
Expand Down Expand Up @@ -63,7 +63,7 @@ fn main() -> Result<(), Box<dyn Error>> {
// 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");
}

Expand Down

0 comments on commit f192813

Please sign in to comment.