You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: use linker wrapper script for cross-compilation flags
The cargo linker config only accepts a single executable path, but
cross-compilation requires flags like --target and -isysroot.
Create a wrapper script that invokes the full CC command (minus ccache)
with all cross-compilation flags. This ensures rustc/cargo passes the
correct target and sysroot when linking for macOS from Linux.
Before: linker = "/usr/bin/clang" (missing flags, -arch fails)
After: linker = "wrapper.sh" -> exec /usr/bin/clang --target=... -isysroot... "$@"
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <[email protected]>
0 commit comments