mirror of
https://github.com/openharmony/third_party_rust_proc-macro-error.git
synced 2026-07-19 16:33:33 -04:00
e12b166318
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>
12 lines
327 B
Rust
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");
|
|
}
|
|
}
|