←back to thread

383 points hkalbasi | 1 comments | | HN request time: 0.209s | source
Show context
satvikpendem ◴[] No.42814960[source]
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",
    ]
replies(4): >>42814999 #>>42815620 #>>42817303 #>>42818677 #
1. brink ◴[] No.42814999[source]
I don't even use mold for production. It's for development.