v0.3.35 breaks the MacOS build
In commit 1baac6393 in the drivers recipe, Cargo.lock
got updated. This now pulls in orbclient >= 0.3.35
. The 0.3.35 commit breaks the drivers build in MacOS with this error:
error: library kind `framework` is only supported on Apple targets
Ironically, the commit in orbclient is supposed to fix the MacOS build. This is related to the line in build.rs:
fn main() {
if cfg!(target_os = "macos") {
println!("cargo:rustc-link-lib=framework=CoreHaptics");
}
}
If I remove build.rs
, I am able to build the drivers. I am also able to unpin the sdl2 dependency.
What is 2fa84f04 supposed to fix?
I tried compiling orbclient, but it fails on a linker error in libsodium, so I cannot verify what effect this has on orbclient directly when building on MacOS.
Please advise what the proper course of actions is. Removing build.rs is tempting. But what side effects will that have? I cannot compile the desktop version yet on MacOS so I'm a bit hampered on those parts of the OS.