]>
Commit | Line | Data |
---|---|---|
e1599b0c XL |
1 | //! This build script detects target platforms that lack proper support for |
2 | //! atomics and sets `cfg` flags accordingly. | |
3 | ||
4 | use std::env; | |
5 | ||
6 | fn 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 | } |