]> git.proxmox.com Git - rustc.git/blame - vendor/log/build.rs
New upstream version 1.39.0+dfsg1
[rustc.git] / vendor / log / build.rs
CommitLineData
e1599b0c
XL
1//! This build script detects target platforms that lack proper support for
2//! atomics and sets `cfg` flags accordingly.
3
4use std::env;
5
6fn main() {
7 let target = env::var("TARGET").unwrap();
8
9 if !target.starts_with("thumbv6") {
10 println!("cargo:rustc-cfg=atomic_cas");
11 }
12
13 println!("cargo:rerun-if-changed=build.rs");
14}