Merge pull request #28 from nicholasbishop/bishop-no-128-panic
Don't panic if autocfg probe fails
This commit is contained in:
commit
56576b592f
6
build.rs
6
build.rs
@ -4,9 +4,7 @@ use std::env;
|
|||||||
fn main() {
|
fn main() {
|
||||||
let ac = autocfg::new();
|
let ac = autocfg::new();
|
||||||
|
|
||||||
if ac.probe_type("i128") {
|
if ac.probe_type("i128") || env::var_os("CARGO_FEATURE_I128").is_some() {
|
||||||
println!("cargo:rustc-cfg=has_i128");
|
println!("cargo:rustc-cfg=has_i128");
|
||||||
} else if env::var_os("CARGO_FEATURE_I128").is_some() {
|
|
||||||
panic!("i128 support was not detected!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user