Skip to content

Commit a79b9ef

Browse files
committed
Add a note about using LLD
1 parent f59be65 commit a79b9ef

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/development.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ Everytime you want to run bors:
6868
- Configure the webhook URL for your app to point to `<address>/github`.
6969
- Try `@bors ping` on some PR on the test repository :)
7070

71+
## Faster compilation
72+
Bors has a lot of dependencies and can be fairly slow to compile. If you want to improve compilation speed, you could use a faster linker, e.g. LLD.
73+
74+
To do that, install it (e.g. using `sudo apt install lld`) and then put this:
75+
```toml
76+
[build]
77+
rustflags = ["-C", "link-arg=-fuse-ld=lld"]
78+
```
79+
into `.cargo/config.toml`.
80+
7181
## Database
7282
You must have `sqlx-cli` installed for the following commands to work.
7383
```console

0 commit comments

Comments
 (0)