Skip to content

Commit 0ad00dd

Browse files
committed
fix llvm ThinLTO behaviour
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 4c542c1 commit 0ad00dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap/src/core/config/config.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1908,8 +1908,7 @@ impl Config {
19081908
}
19091909
}
19101910

1911-
// NOTE: can never be hit when downloading from CI, since we call `check_ci_llvm!(thin_lto)` above.
1912-
if config.llvm_thin_lto && link_shared.is_none() {
1911+
if !config.llvm_from_ci && config.llvm_thin_lto && link_shared.is_none() {
19131912
// If we're building with ThinLTO on, by default we want to link
19141913
// to LLVM shared, to avoid re-doing ThinLTO (which happens in
19151914
// the link step) with each stage.

0 commit comments

Comments
 (0)