We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 194a592 + 1daa33e commit bfca75aCopy full SHA for bfca75a
1 file changed
engineering-book/src/ch08-compile-time-and-developer-tools.md
@@ -55,11 +55,18 @@ sudo apt install mold # Ubuntu 22.04+
55
# The macOS linker (ld64) is already quite fast; if you need faster:
56
# brew install sold # sold = mold for Mach-O (experimental, less mature)
57
# In practice, macOS link times are rarely a bottleneck.
58
+```
59
60
+```toml
61
# Use mold for linking
62
# .cargo/config.toml
63
[target.x86_64-unknown-linux-gnu]
64
rustflags = ["-C", "link-arg=-fuse-ld=mold"]
65
66
+
67
+```bash
68
+# See https://github.com/rui314/mold/blob/main/docs/mold.md#environment-variables
69
+export MOLD_JOBS=1
70
71
# Verify mold is being used
72
cargo build -v 2>&1 | grep mold
0 commit comments