mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-16 14:40:37 +00:00
10 lines
301 B
Rust
10 lines
301 B
Rust
fn main() {
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
let nightly = std::env::var_os("CARGO_FEATURE_NIGHTLY").is_some();
|
|
let has_stable_alloc = || autocfg::new().probe_rustc_version(1, 36);
|
|
|
|
if nightly || has_stable_alloc() {
|
|
autocfg::emit("has_extern_crate_alloc")
|
|
}
|
|
}
|