openethereum/util/build.rs

14 lines
254 B
Rust
Raw Normal View History

2016-02-21 21:14:09 +01:00
extern crate vergen;
2016-02-29 12:29:51 +01:00
extern crate rustc_version;
2016-02-21 21:14:09 +01:00
use vergen::*;
2016-02-29 12:29:51 +01:00
use rustc_version::{version_meta, Channel};
2016-02-21 21:14:09 +01:00
fn main() {
vergen(OutputFns::all()).unwrap();
2016-02-29 12:29:51 +01:00
2016-02-29 13:23:43 +01:00
if let Channel::Nightly = version_meta().channel {
2016-02-29 12:29:51 +01:00
println!("cargo:rustc-cfg=x64asm");
2016-02-29 13:23:43 +01:00
}
2016-02-29 12:29:51 +01:00
}