aboutsummaryrefslogtreecommitdiff
path: root/crates/cortex-m/build.rs
blob: 286e738aaa022e4993bea4ad74d0af794b7fedda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::{env, path};

fn main() {
    let out_dir = path::PathBuf::from(env::var("OUT_DIR").unwrap());
    std::fs::write(
        out_dir.join("weak-symbols.x"),
        r#"
PROVIDE(PendSV = PendSV_Handler);
PROVIDE(SysTick = _tx_timer_interrupt);
"#,
    )
    .unwrap();
    println!("cargo::rustc-link-search={}", out_dir.display());
}