Debian Codegraph @

build.rs

raw symbols SCIP
1 // pathfinder/simd/build.rs
2 //
3 // Copyright © 2019 The Pathfinder Project Developers.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 extern crate rustc_version;
12
13 use rustc_version::Channel;
14
15 fn main() {
16 // Assert we haven't travelled back in time
17 assert!(rustc_version::version().unwrap().major >= 1);
18
19 // Set cfg flags depending on release channel
20 match rustc_version::version_meta().unwrap().channel {
21 Channel::Nightly => {
22 println!("cargo:rustc-cfg=pf_rustc_nightly");
23 }
24 _ => {}
25 }
26 }