Files
Igor Raits e12b166318 build.rs: Simplify check for version
This also fixes build with rustc shipped by distributions.

Fixes: https://gitlab.com/CreepySkeleton/proc-macro-error/issues/8
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
2020-03-02 13:28:06 +01:00

12 lines
327 B
Rust

fn main() {
if !version_check::is_feature_flaggable().unwrap_or(false) {
println!("cargo:rustc-cfg=use_fallback");
}
if version_check::is_max_version("1.38.0").unwrap_or(false)
|| !version_check::Channel::read().unwrap().is_stable()
{
println!("cargo:rustc-cfg=skip_ui_tests");
}
}