When using xx-sdk (osxcross), xx-cargo tries to set an invalid var:
/usr/bin/xx-cargo: export: line 84: CARGO_TARGET_ARM64_UNKNOWN_MACOS10.16_LINKER: bad variable name
This is because the result from xx-info is arm64-apple-macos10.16, which is then transformed for the CARGO_TARGET_{triple}_LINKER env var:
|
export "CARGO_TARGET_$(xx-info | tr '[:lower:]' '[:upper:]' | tr - _)_LINKER=$(xx-info)-clang" |
I think this needs to be aarch64-apple-darwin based on available rustc triples:
❯ rustc --print target-list | rg darwin
aarch64-apple-darwin
arm64e-apple-darwin
i686-apple-darwin
x86_64-apple-darwin
x86_64h-apple-darwin
When using
xx-sdk(osxcross),xx-cargotries to set an invalid var:This is because the result from
xx-infoisarm64-apple-macos10.16, which is then transformed for theCARGO_TARGET_{triple}_LINKERenv var:xx/src/xx-cargo
Line 84 in 2fc8560
I think this needs to be
aarch64-apple-darwinbased on availablerustctriples:❯ rustc --print target-list | rg darwin aarch64-apple-darwin arm64e-apple-darwin i686-apple-darwin x86_64-apple-darwin x86_64h-apple-darwin