diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-08-13 18:20:22 +0300 |
|---|---|---|
| committer | Who? Me?! <mark-i-m@users.noreply.github.com> | 2019-08-14 08:26:07 -0500 |
| commit | 2c03515c2b8b67c96bbadb640d5009cd9e6542e2 (patch) | |
| tree | 6c488002f9df60b92120a291f0b643af78d9e88b /src/doc/rustc-dev-guide | |
| parent | 90fa36986175ef3bba8552b3ba80bdd5873f03f0 (diff) | |
| download | rust-2c03515c2b8b67c96bbadb640d5009cd9e6542e2.tar.gz rust-2c03515c2b8b67c96bbadb640d5009cd9e6542e2.zip | |
document how to use system llvm
Diffstat (limited to 'src/doc/rustc-dev-guide')
| -rw-r--r-- | src/doc/rustc-dev-guide/src/how-to-build-and-run.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/doc/rustc-dev-guide/src/how-to-build-and-run.md b/src/doc/rustc-dev-guide/src/how-to-build-and-run.md index 8a803e66cc9..2c4d2a97954 100644 --- a/src/doc/rustc-dev-guide/src/how-to-build-and-run.md +++ b/src/doc/rustc-dev-guide/src/how-to-build-and-run.md @@ -469,6 +469,18 @@ You can also use `--keep-stage 1` when running tests. Something like this: - Initial test run: `./x.py test -i --stage 1 src/test/ui` - Subsequent test run: `./x.py test -i --stage 1 src/test/ui --keep-stage 1` +### Building with system LLVM + +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. + +This is specified in the `target` section of `config.toml`: + +```toml +[target.x86_64-unknown-linux-gnu] +llvm-config = "/path/to/llvm/llvm-7.0.1/bin/llvm-config" +``` + ### Other `x.py` commands Here are a few other useful `x.py` commands. We'll cover some of them in detail |
