Skip to content

Commit

Permalink
Document new way to not build LLVM
Browse files Browse the repository at this point in the history
Implemented in rust-lang/rust#76349
  • Loading branch information
matklad committed Sep 13, 2020
1 parent 2c733c9 commit fffc4d8
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/building/suggested.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,21 @@ git worktree add -b my-feature ../rust2 master
You can then use that rust2 folder as a separate workspace for modifying
and building `rustc`!

## Building with system LLVM
## Skipping LLVM Build

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

This is specified in the `target` section of `config.toml`:
```toml
[llvm]
download-ci-llvm = true
```

Downloading LLVM from CI is still experimental though, and might not be
available on all platforms. Otherwise, we'd make it a default!

Another alternative is to use LLVM already installed on your computer. This is
specified in the `target` section of `config.toml`:

```toml
[target.x86_64-unknown-linux-gnu]
Expand Down

0 comments on commit fffc4d8

Please sign in to comment.