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
{{ message }}
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.
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.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: