Skip to content

Commit

Permalink
handle docs.rs in build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerZade authored and sdroege committed Dec 14, 2023
1 parent 5196669 commit 52409b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dav1d-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ mod build {
}

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

system_deps::Config::new()
.add_build_internal("dav1d", build::build_from_src)
.probe()
Expand Down

0 comments on commit 52409b2

Please sign in to comment.