Skip to content

Commit f4b8451

Browse files
bootstrap: Never compiler llvm-emscripten with ThinLTO.
1 parent 73364c8 commit f4b8451

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/native.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl Step for Llvm {
153153
.define("LLVM_TARGET_ARCH", target.split('-').next().unwrap())
154154
.define("LLVM_DEFAULT_TARGET_TRIPLE", target);
155155

156-
if builder.config.llvm_thin_lto {
156+
if builder.config.llvm_thin_lto && !emscripten {
157157
cfg.define("LLVM_ENABLE_LTO", "Thin")
158158
.define("LLVM_ENABLE_LLD", "ON");
159159
}

0 commit comments

Comments
 (0)