diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-12-14 09:15:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-14 15:15:16 +0100 |
commit | a38b6b8acceabf0e4d877af19c0967d7c7a77cd7 (patch) | |
tree | c363d52436c9520bb5baa523f00b13649c44d735 | |
parent | 502c77aad969fe8557aaf6d56432f94450c26a2a (diff) |
fix: docs.rs detection (#8755)
-rw-r--r-- | cli/build.rs | 4 | ||||
-rw-r--r-- | runtime/build.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/cli/build.rs b/cli/build.rs index 35fadfa64..84c74683d 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -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; } diff --git a/runtime/build.rs b/runtime/build.rs index e8f036eff..3b8be4136 100644 --- a/runtime/build.rs +++ b/runtime/build.rs @@ -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; } |