3 ms·
I looked at this before, is it ready for production? I thought not based on the readme, so I'm still using mold. For those on macOS, Apple released a new linke
by satvikpendem 2y ago
I looked at this before, is it ready for production? I thought not based on the readme, so I'm still using mold.
For those on macOS, Apple released a new linker about a year or two ago (which is why the mold author stopped working on their macOS version), and if you're using it with Rust, put this in your config.toml:
[target.aarch64-apple-darwin]
rustflags = [
"-C",
"link-arg=-fuse-ld=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld",
"-C",
"link-arg=-ld_new",
]
- brink 2y agoI don't even use mold for production. It's for development.
- dralley 2y agoNo, the author is pretty clear that it shouldn't be used for production yet
- satvikpendem 2y agoGreat, I'll keep a look out but will hold off on using it for now.
- newman314 2y agoCan you confirm that's still the right location for Sequioa? I have the command line tools installed and I only have /usr/bin/ld and /usr/bin/ld-classic
- satvikpendem 2y agoThen it'd be the /usr/bin/ld as I believe my solution was for before they moved the linker it seems.
- saagarjha 2y ago/usr/bin/ld will correctly invoke the right linker, it's a stub to look at your developer dir and reexec.
- bla3 2y agoIsn't the new linked just the default these days? I'm not sure adding that has any effect.