14 lines
254 B
Rust
14 lines
254 B
Rust
extern crate vergen;
|
|
extern crate rustc_version;
|
|
|
|
use vergen::*;
|
|
use rustc_version::{version_meta, Channel};
|
|
|
|
fn main() {
|
|
vergen(OutputFns::all()).unwrap();
|
|
|
|
if let Channel::Nightly = version_meta().channel {
|
|
println!("cargo:rustc-cfg=x64asm");
|
|
}
|
|
}
|