summaryrefslogtreecommitdiff
path: root/runtime/build.rs
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/build.rs')
-rw-r--r--runtime/build.rs4
1 files changed, 2 insertions, 2 deletions
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;
}