Skip to content

Commit 6b6e6cc

Browse files
matkladmark-i-m
authored andcommitted
document how to use system llvm
1 parent b7f2494 commit 6b6e6cc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: src/how-to-build-and-run.md

+12
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,18 @@ You can also use `--keep-stage 1` when running tests. Something like this:
469469
- Initial test run: `./x.py test -i --stage 1 src/test/ui`
470470
- Subsequent test run: `./x.py test -i --stage 1 src/test/ui --keep-stage 1`
471471

472+
### Building with system LLVM
473+
474+
By default, LLVM is built from source, and that can take significant amount of time.
475+
An alternative is to use LLVM already installed on your computer.
476+
477+
This is specified in the `target` section of `config.toml`:
478+
479+
```toml
480+
[target.x86_64-unknown-linux-gnu]
481+
llvm-config = "/path/to/llvm/llvm-7.0.1/bin/llvm-config"
482+
```
483+
472484
### Other `x.py` commands
473485

474486
Here are a few other useful `x.py` commands. We'll cover some of them in detail

0 commit comments

Comments
 (0)