From 3803da8cff5946117739f29e52ed880081b5cbea Mon Sep 17 00:00:00 2001 From: Henrik Stromberg Date: Sat, 6 Jan 2024 11:12:03 +0100 Subject: [PATCH] supress build on crates.io by checking DOCS_RS to circumvent failing of building docs without internet connection as is the situation on crates.io --- openblas-src/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openblas-src/build.rs b/openblas-src/build.rs index 9262344..cd3ccc4 100644 --- a/openblas-src/build.rs +++ b/openblas-src/build.rs @@ -76,6 +76,9 @@ fn macos_system() { } fn main() { + if !env::var("DOCS_RS").is_ok() { + return; + } let link_kind = if feature_enabled("static") { "static" } else {