diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-01-30 03:32:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-30 09:32:20 +0100 |
commit | e1b3a0769a09458855aeaedfc78176b90a1e0788 (patch) | |
tree | 99618869eb9a7985c73dbb077f11c9e221dc0255 | |
parent | 1c6c6c6d7f85c7f9a7c77489abba669d5dff22ab (diff) |
Try to fix docs.rs for cli crate (#3823)
-rw-r--r-- | cli/build.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cli/build.rs b/cli/build.rs index 426403f1a..ed04986a4 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -34,6 +34,11 @@ fn op_fetch_asset( } 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() { + return; + } + // To debug snapshot issues uncomment: // deno_typescript::trace_serializer(); |