Skip to content

Commit

Permalink
Merge pull request #241 from semarie/openbsd
Browse files Browse the repository at this point in the history
use system library on openbsd
  • Loading branch information
alexcrichton committed May 12, 2018
2 parents 5f9bbc9 + d8bbc81 commit 4cfd710
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ fn main() {
return;
}

// OpenBSD provides compiler_rt by default, use it instead of rebuilding it from source
if target.contains("openbsd") {
println!("cargo:rustc-link-search=native=/usr/lib");
println!("cargo:rustc-link-lib=static=compiler_rt");
return;
}

// Forcibly enable memory intrinsics on wasm32 as we don't have a libc to
// provide them.
if target.contains("wasm32") {
Expand Down

0 comments on commit 4cfd710

Please sign in to comment.