David CARLIER 698ebb6b35
libafl_bolts: fix musl build (#1421)
despite being present in the headers, getcontext is not implemented in
musl libc, most likely due to the fact it s a deprecated interface.
The only way around is having the third party libucontext apk package
installed.
2023-08-13 12:14:30 +02:00

15 lines
379 B
Rust

#[rustversion::nightly]
fn main() {
println!("cargo:rerun-if-changed=build.rs");
println!("cargo:rustc-cfg=nightly");
#[cfg(target_env = "musl")]
println!("cargo:rustc-link-lib=ucontext");
}
#[rustversion::not(nightly)]
fn main() {
println!("cargo:rerun-if-changed=build.rs");
#[cfg(target_env = "musl")]
println!("cargo:rustc-link-lib=ucontext");
}