Skip to content

Commit 95650a8

Browse files
matkladJoshua Nelson
authored and
Joshua Nelson
committed
Document new way to not build LLVM
Implemented in rust-lang/rust#76349
1 parent c583e8b commit 95650a8

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

src/building/suggested.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,21 @@ git worktree add -b my-feature ../rust2 master
161161
You can then use that rust2 folder as a separate workspace for modifying
162162
and building `rustc`!
163163

164-
## Building with system LLVM
164+
## Skipping LLVM Build
165165

166-
By default, LLVM is built from source, and that can take significant amount of
167-
time. An alternative is to use LLVM already installed on your computer.
166+
By default, LLVM is built from source, and that takes significant amount of
167+
time. One way to avoid that is to add this to `config.toml`:
168168

169-
This is specified in the `target` section of `config.toml`:
169+
```toml
170+
[llvm]
171+
download-ci-llvm = true
172+
```
173+
174+
Downloading LLVM from CI is still experimental though, and might not be
175+
available on all platforms. Otherwise, we'd make it a default!
176+
177+
Another alternative is to use LLVM already installed on your computer. This is
178+
specified in the `target` section of `config.toml`:
170179

171180
```toml
172181
[target.x86_64-unknown-linux-gnu]

0 commit comments

Comments
 (0)