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
Just as a note to others - there's broader problems with cross-compiling from Linux to macOS w/ Rust. The cross project might be worth looking at, but it seems to assume an amd64 host.
I got further by using xx-clang --setup-target-triple and setting env vars myself, but eventually hit issues due to needing objcopy & friends.
When using
xx-sdk
(osxcross),xx-cargo
tries to set an invalid var:This is because the result from
xx-info
isarm64-apple-macos10.16
, which is then transformed for theCARGO_TARGET_{triple}_LINKER
env var:xx/src/xx-cargo
Line 84 in 2fc8560
I think this needs to be
aarch64-apple-darwin
based on availablerustc
triples:❯ rustc --print target-list | rg darwin aarch64-apple-darwin arm64e-apple-darwin i686-apple-darwin x86_64-apple-darwin x86_64h-apple-darwin
The text was updated successfully, but these errors were encountered: