From fbf7ee0f9739d397c77c0cb532f64fef5194cd33 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Sun, 19 Sep 2021 14:47:04 +0100 Subject: [PATCH] Add a paragraph on installing `ninja-build` in order to build LLVM. Signed-off-by: Daira Hopwood --- src/building/how-to-build-and-run.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/building/how-to-build-and-run.md b/src/building/how-to-build-and-run.md index 49c2e8b66..a97eec5ef 100644 --- a/src/building/how-to-build-and-run.md +++ b/src/building/how-to-build-and-run.md @@ -52,6 +52,10 @@ If you have already built `rustc` and you change settings related to LLVM, then execute `rm -rf build` for subsequent configuration changes to take effect. Note that `./x.py clean` will not cause a rebuild of LLVM. +If you are building LLVM (i.e. you didn't add `download-ci-llvm = true` +to the `[llvm]` section of `config.toml`), you'll want to +[install the `ninja-build` tool](https://github.com/ninja-build/ninja/wiki/Pre-built-Ninja-packages). + ## What is `x.py`? `x.py` is the script used to orchestrate the tooling in the `rustc` repository.