~ruther/avr-device

ref: 7f6dbe125e6cda8661c80dc4ed466907dfa0af70 avr-device/build.rs -rw-r--r-- 316 bytes
7f6dbe12 — dalpil Adds patch for the timers on attiny167 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");
}