fix: docs.rs detection (#8755)

This commit is contained in:
Ryan Dahl 2020-12-14 09:15:16 -05:00 committed by GitHub
parent 502c77aad9
commit a38b6b8acc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -200,8 +200,8 @@ fn git_commit_hash() -> String {
}
fn main() {
// Don't build V8 if "cargo doc" is being run. This is to support docs.rs.
if env::var_os("RUSTDOCFLAGS").is_some() {
// Skip building from docs.rs.
if env::var_os("DOCS_RS").is_some() {
return;
}

View File

@ -8,8 +8,8 @@ use std::env;
use std::path::PathBuf;
fn main() {
// Don't build V8 if "cargo doc" is being run. This is to support docs.rs.
if env::var_os("RUSTDOCFLAGS").is_some() {
// Skip building from docs.rs.
if env::var_os("DOCS_RS").is_some() {
return;
}