Added this to .cargo/config.toml
When building I get:
error: linking with `cc` failed: exit status: 1
ld: can't link with a main executable file '/opt/homebrew/bin/zld' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
To reproduce
Happens on any new rust project after adding the config.toml with the link target.
link to repo (not updated with the latest rustflags above)
rustup target list shows aarch64-apple-darwin is the only one installed
I've updated brew, reinstalled xcode command line tools several times and I've double checked the path to zld.
Currently going through the Rust book Zero to Production.
Successfully installed this linker using homebrew
Added this to
.cargo/config.toml
When building I get:To reproduce
Happens on any new rust project after adding the config.toml with the link target. link to repo (not updated with the latest rustflags above)
rustup target list
showsaarch64-apple-darwin
is the only one installedI've updated brew, reinstalled xcode command line tools several times and I've double checked the path to zld.
Any help would be appreciated.