Skip to content

Commit a543dbf

Browse files
authored
Rollup merge of #50104 - mixi:libxml2-llvm, r=alexcrichton
Disable auto-detection of libxml2 when compiling llvm. This broke cross-compiling rustc with internal llvm (with both the host and target being executable on the machine), because llvm's build system detected libxml2 on the host, therefore auto-enabled libxml2 support, but wouldn't compile as the target didn't have libxml2 installed.
2 parents fff68f7 + b92e6c3 commit a543dbf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bootstrap/native.rs

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ impl Step for Llvm {
149149
.define("WITH_POLLY", "OFF")
150150
.define("LLVM_ENABLE_TERMINFO", "OFF")
151151
.define("LLVM_ENABLE_LIBEDIT", "OFF")
152+
.define("LLVM_ENABLE_LIBXML2", "OFF")
152153
.define("LLVM_PARALLEL_COMPILE_JOBS", builder.jobs().to_string())
153154
.define("LLVM_TARGET_ARCH", target.split('-').next().unwrap())
154155
.define("LLVM_DEFAULT_TARGET_TRIPLE", target);

0 commit comments

Comments
 (0)