~ruther/avr-device

ref: 918f14f449ab5d49570b6948ea399759c5034078 avr-device/build.rs -rw-r--r-- 316 bytes
918f14f4 — Rahix Update CHANGELOG 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    println!("cargo:rerun-if-changed=build.rs");

    maybe_enable_asm();
}

#[rustversion::before(1.59.0)]
fn maybe_enable_asm() {
    //
}

#[rustversion::since(1.59.0)]
fn maybe_enable_asm() {
    // https://github.com/rust-lang/rust/pull/92816
    println!("cargo:rustc-cfg=avr_device_asm_macro");
}
Do not follow this link