Skip to content

Document new way to not build LLVM #878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 4, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not feel like the right place to indicate planned policy/default, here referring to "we'd make it a default".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also was done in the interest of future compatibility. The thing is in flux, so I find it useful:

  • to document it early, even if incomplete
  • to be clear that there might be changes, and that the docs might be out of date
  • to not be super strict with keeping the docs up to date.

Copy link
Member

@tshepang tshepang Sep 13, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was only referring to "Otherwise, we'd make it a default". First sentence is all good.


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