-
Notifications
You must be signed in to change notification settings - Fork 550
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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". There was a problem hiding this comment. Choose a reason for hiding this commentThe 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:
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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] | ||
|
Uh oh!
There was an error while loading. Please reload this page.