summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-01-30 03:32:20 -0500
committerGitHub <noreply@github.com>2020-01-30 09:32:20 +0100
commite1b3a0769a09458855aeaedfc78176b90a1e0788 (patch)
tree99618869eb9a7985c73dbb077f11c9e221dc0255
parent1c6c6c6d7f85c7f9a7c77489abba669d5dff22ab (diff)
Try to fix docs.rs for cli crate (#3823)
-rw-r--r--cli/build.rs5
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();