~ruther/avr-device

ref: 829131b774259ddd7c0572b5793bcc5014c4a75f avr-device/build.rs -rw-r--r-- 316 bytes
829131b7 — Rahix Prepare 0.3.4 2 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