Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Commit

Permalink
Add missing build.rs in benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
koute committed Jul 17, 2018
1 parent ca9f582 commit fab08db
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions benchmarks/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
extern crate rustc_version;

use rustc_version::{version_meta, Channel};

fn main() {
if version_meta().unwrap().channel == Channel::Nightly {
println!( "cargo:rustc-cfg=nightly" );
}
}

0 comments on commit fab08db

Please sign in to comment.