Hi all! We're looking for a way to specify weak_framework as a linker argument to specify which frameworks to weakly link for macOS targets. This would allow us to more easily cross-compile for macOS from other host platforms.
Likely this simply isn't supported today? If you want to add support, this seems like a small and reasonable change so likely you can just file a PR. Does LLVM support this?
The latter will only work if your .cargo directory is placed correctly for your build (either system-wide, or in a (transitive) parent directory) - see Configuration - The Cargo Book
(1) could be interesting, we aren't currently building a cdylib, but I guess it's possible that we could create a separate cdylib crate that is empty except for that build.rs (at least as a temporary workaround).
(2) wouldn't work well for us because we can't expect everyone depending on our crate to modify their global .cargo/config.toml.