mold
mold copied to clipboard
mold not generate debug symbols on mac m1
How to reproduce:
cargo new --bin test-mold
cd test-mold
env RUSTFLAGS="-C link-arg=-fuse-ld=/opt/homebrew/bin/ld64.mold" cargo build
dsymutil -s target/debug/test-mold|grep N_OSO
dsymutil
outputs no content.
mold version: mold 1.4.1 (800d246ec3b74aaf6a29850fff542c3bd070437f; compatible with GNU ld)