diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2021-08-07 17:23:12 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-08-16 18:28:18 +0200 |
| commit | d20e798ad871b25ff5597c837e081fb6b635be57 (patch) | |
| tree | 706f96028ff68f71f3ea14e67d8526dad3864e7d | |
| parent | 7c015648dd78a329920060125378eb52762a728f (diff) | |
| download | rust-d20e798ad871b25ff5597c837e081fb6b635be57.tar.gz rust-d20e798ad871b25ff5597c837e081fb6b635be57.zip | |
Set LLVM_INCLUDE_TESTS=OFF when building LLVM
When LLVM_INCLUDE_TESTS is enabled (by default), LLVM requires Python 3.6 for the lit test runner, otherwise only Python 3.0 is required. As we have many docker images using Ubuntu 16.04, which only has Python 3.5, this avoids the need to install a newer Python version for them.
| -rw-r--r-- | src/bootstrap/native.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bootstrap/native.rs b/src/bootstrap/native.rs index b32629af4d3..d1397394be7 100644 --- a/src/bootstrap/native.rs +++ b/src/bootstrap/native.rs @@ -180,6 +180,7 @@ impl Step for Llvm { .define("LLVM_INCLUDE_EXAMPLES", "OFF") .define("LLVM_INCLUDE_DOCS", "OFF") .define("LLVM_INCLUDE_BENCHMARKS", "OFF") + .define("LLVM_INCLUDE_TESTS", "OFF") .define("LLVM_ENABLE_TERMINFO", "OFF") .define("LLVM_ENABLE_LIBEDIT", "OFF") .define("LLVM_ENABLE_BINDINGS", "OFF") |
