From 8c2abed20ae2f0a01606ba3fafef55d199533ef2 Mon Sep 17 00:00:00 2001 From: Szymon Zadworny Date: Fri, 7 Aug 2026 13:03:14 +0000 Subject: [PATCH] Disable C++ shim compilation on docs.rs --- oneapi-rs-sys/build.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/oneapi-rs-sys/build.rs b/oneapi-rs-sys/build.rs index c222644..a677867 100644 --- a/oneapi-rs-sys/build.rs +++ b/oneapi-rs-sys/build.rs @@ -10,6 +10,10 @@ use std::{io::Error, path::PathBuf}; use which::which; fn main() { + if std::env::var("DOCS_RS").is_ok() { + return; + } + let compiler_path = get_compiler_path() .expect("Expecting a compiler. Set the ONEAPI_CXX environment variable.");