Commit 8f253772 authored by Jeremy Soller's avatar Jeremy Soller

Hack to allow locally built rustc

parent a4ddc380
......@@ -38,6 +38,8 @@ impl Sub<Mapping> for Vec<Mapping> {
fn main() {
let ver=rustc_version::version_meta();
let io_commit="b9adc3327ec7d2820ab2db8bb3cc2a0196a8375d";
/*
let io_commit=match env::var("CORE_IO_COMMIT") {
Ok(c) => c,
Err(env::VarError::NotUnicode(_)) => panic!("Invalid commit specified in CORE_IO_COMMIT"),
......@@ -48,12 +50,13 @@ fn main() {
mappings.iter().find(|&&Mapping(elem,_)|elem==compiler).expect("Unknown compiler version, upgrade core_io?").1.to_owned()
}
};
*/
if ver.commit_date.as_ref().map_or(false,|d| &**d>="2018-01-01") {
if ver.commit_date.as_ref().map_or(true,|d| &**d>="2018-01-01") {
println!("cargo:rustc-cfg=core_memchr");
}
if ver.commit_date.as_ref().map_or(false,|d| &**d>="2017-06-15") {
if ver.commit_date.as_ref().map_or(true,|d| &**d>="2017-06-15") {
println!("cargo:rustc-cfg=no_collections");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment