Skip to content

Commit 8ad40ed

Browse files
bootstrap: Never compiler llvm-emscripten with ThinLTO.
1 parent 2d644b2 commit 8ad40ed

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
@@ -154,7 +154,7 @@ impl Step for Llvm {
154154
.define("LLVM_TARGET_ARCH", target.split('-').next().unwrap())
155155
.define("LLVM_DEFAULT_TARGET_TRIPLE", target);
156156

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

0 commit comments

Comments
 (0)