mirror of
https://gitee.com/openharmony/third_party_rust_proc-macro2
synced 2024-11-27 01:20:48 +00:00
Merge pull request #310 from dtolnay/docsrs
Work around doc build failure due to docs.rs flags change
This commit is contained in:
commit
d8c0371a8f
3
build.rs
3
build.rs
@ -58,7 +58,8 @@ fn main() {
|
||||
process::exit(1);
|
||||
}
|
||||
|
||||
let semver_exempt = cfg!(procmacro2_semver_exempt);
|
||||
let docs_rs = env::var_os("DOCS_RS").is_some();
|
||||
let semver_exempt = cfg!(procmacro2_semver_exempt) || docs_rs;
|
||||
if semver_exempt {
|
||||
// https://github.com/dtolnay/proc-macro2/issues/147
|
||||
println!("cargo:rustc-cfg=procmacro2_semver_exempt");
|
||||
|
Loading…
Reference in New Issue
Block a user