cortex-m-semihosting 0.6.0

Semihosting for ARM Cortex-M processors
Documentation
1
2
3
4
5
6
7
8
9
10
use std::env;

fn main() {
    let target = env::var("TARGET").unwrap();

    println!("cargo:rustc-check-cfg=cfg(thumb)");
    if target.starts_with("thumbv") {
        println!("cargo:rustc-cfg=thumb");
    }
}