Skip to content

Commit

Permalink
Merge pull request #310 from dtolnay/docsrs
Browse files Browse the repository at this point in the history
Work around doc build failure due to docs.rs flags change
  • Loading branch information
dtolnay committed Dec 14, 2021
2 parents 4ca16a0 + 1385671 commit d8c0371
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.rs
Expand Up @@ -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");
Expand Down

0 comments on commit d8c0371

Please sign in to comment.