build: run unit tests locally
This commit is contained in:
parent
9a6491c393
commit
933106b7ea
5 changed files with 63 additions and 16 deletions
12
build.rs
12
build.rs
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue