Merge pull request #241 from semarie/openbsd
use system library on openbsd
This commit is contained in:
commit
4cfd7101eb
7
build.rs
7
build.rs
|
@ -10,6 +10,13 @@ fn main() {
|
||||||
return;
|
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
|
// Forcibly enable memory intrinsics on wasm32 as we don't have a libc to
|
||||||
// provide them.
|
// provide them.
|
||||||
if target.contains("wasm32") {
|
if target.contains("wasm32") {
|
||||||
|
|
Loading…
Reference in New Issue