use system library on openbsd
compiler_rt is provided by default on OpenBSD, so use it instead of rebuilding it from source.
This commit is contained in:
parent
f58152286a
commit
c207fd3869
1 changed files with 7 additions and 0 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue