Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions oneapi-rs-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ use std::{io::Error, path::PathBuf};
use which::which;

fn main() {
if std::env::var("DOCS_RS").is_ok() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: please add a comment why we are doing this

return;
}

let compiler_path = get_compiler_path()
.expect("Expecting a compiler. Set the ONEAPI_CXX environment variable.");

Expand Down