Maybe a dumb question but how would I go about using it with rust(c) and cargo? Would love to try it out, if it decreases total compile times.
or persitant in your project:
.cargo/config.toml
[target.x86_64-unknown-linux-gnu] linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=/PATH/TO/mold"]
fuse-ld still works though.
So maybe that "--ld-path" option helps resolve ambiguity by expecting an explicit path instead of a linker name.
The flags are part of the cache hash, so your IDE and cli constantly invalidate the cache and compile from scratch.