0
0
Fork 0

build: run unit tests locally

This commit is contained in:
Jannik Beyerstedt 2026-06-01 13:53:42 +02:00
commit 933106b7ea
5 changed files with 63 additions and 16 deletions

View file

@ -1,7 +1,13 @@
use std::env;
fn main() {
linker_be_nice();
// make sure linkall.x is the last linker script (otherwise might cause problems with flip-link)
println!("cargo:rustc-link-arg=-Tlinkall.x");
let target_arch = env::var("CARGO_CFG_TARGET_ARCH").unwrap();
if target_arch == "riscv32" {
linker_be_nice();
// make sure linkall.x is the last linker script (otherwise might cause problems with flip-link)
println!("cargo:rustc-link-arg=-Tlinkall.x");
}
}
fn linker_be_nice() {