ax-percpu 0.4.18

Define and access per-CPU data structures
Documentation
1
2
3
4
5
6
7
8
9
use std::path::Path;

fn main() {
    if cfg!(feature = "host-test") {
        let ld_script_path = Path::new(std::env!("CARGO_MANIFEST_DIR")).join("host-test.ld");
        println!("cargo:rerun-if-changed={}", ld_script_path.display());
        println!("cargo:rustc-link-arg-tests=-T{}", ld_script_path.display());
    }
}