Skip to content

Commit d20e798

Browse files
committed
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.
1 parent 7c01564 commit d20e798

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/native.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ impl Step for Llvm {
180180
.define("LLVM_INCLUDE_EXAMPLES", "OFF")
181181
.define("LLVM_INCLUDE_DOCS", "OFF")
182182
.define("LLVM_INCLUDE_BENCHMARKS", "OFF")
183+
.define("LLVM_INCLUDE_TESTS", "OFF")
183184
.define("LLVM_ENABLE_TERMINFO", "OFF")
184185
.define("LLVM_ENABLE_LIBEDIT", "OFF")
185186
.define("LLVM_ENABLE_BINDINGS", "OFF")

0 commit comments

Comments
 (0)