From edd2ec20ba5052d395df975816d3b54954869c9b Mon Sep 17 00:00:00 2001 From: Christien Rioux Date: Wed, 18 Oct 2023 07:40:16 -0400 Subject: [PATCH] one more case --- veilid-core/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/veilid-core/build.rs b/veilid-core/build.rs index 0b6fe3a1..3270ca97 100644 --- a/veilid-core/build.rs +++ b/veilid-core/build.rs @@ -50,7 +50,10 @@ fn get_protoc_version_string() -> String { } fn main() { - if std::env::var("DOCS_RS").is_ok() || std::env::var("BUILD_DOCS").is_ok() { + if std::env::var("DOCS_RS").is_ok() + || std::env::var("CARGO_CFG_DOC").is_ok() + || std::env::var("BUILD_DOCS").is_ok() + { return; }