From e1b3a0769a09458855aeaedfc78176b90a1e0788 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 30 Jan 2020 03:32:20 -0500 Subject: Try to fix docs.rs for cli crate (#3823) --- cli/build.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cli') 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(); -- cgit v1.2.3