mirror of
https://github.com/denoland/deno
synced 2024-08-27 03:50:16 +00:00
fix: docs.rs detection (#8755)
This commit is contained in:
parent
502c77aad9
commit
a38b6b8acc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue