Skip to content

Commit 018ed9a

Browse files
committed
fix llvm ThinLTO behaviour
Signed-off-by: onur-ozkan <[email protected]>
1 parent ea34bb0 commit 018ed9a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: src/bootstrap/src/core/config/config.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1916,8 +1916,7 @@ impl Config {
19161916
}
19171917
}
19181918

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

0 commit comments

Comments
 (0)