Comment Comment by the_duke RUSTFLAGS="-C linker=clang -C link-arg=-fuse-ld=/path/to/mold" cargo buildor persitant in your project:.cargo/config.toml[target.x86_64-unknown-linux-gnu] linker = "clang" rustflags = ["-C", "link-arg=-fuse-ld=/PATH/TO/mold"] parent the_duke 4 years ago
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"]