diff options
| author | onur-ozkan <work@onurozkan.dev> | 2024-08-30 20:01:05 +0300 |
|---|---|---|
| committer | onur-ozkan <work@onurozkan.dev> | 2024-09-08 17:52:14 +0300 |
| commit | 018ed9abb92496373da0dcf594767846eaeec4e3 (patch) | |
| tree | e959f4bd6a3a13c874ee347436c5d225b51423c2 /src | |
| parent | ea34bb045264466c6b3bc63caf64264de219ad77 (diff) | |
| download | rust-018ed9abb92496373da0dcf594767846eaeec4e3.tar.gz rust-018ed9abb92496373da0dcf594767846eaeec4e3.zip | |
fix llvm ThinLTO behaviour
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src')
| -rw-r--r-- | src/bootstrap/src/core/config/config.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/config/config.rs b/src/bootstrap/src/core/config/config.rs index 824f65cb6b8..327cf6c575a 100644 --- a/src/bootstrap/src/core/config/config.rs +++ b/src/bootstrap/src/core/config/config.rs @@ -1916,8 +1916,7 @@ impl Config { } } - // NOTE: can never be hit when downloading from CI, since we call `check_ci_llvm!(thin_lto)` above. - if config.llvm_thin_lto && link_shared.is_none() { + if !config.llvm_from_ci && config.llvm_thin_lto && link_shared.is_none() { // If we're building with ThinLTO on, by default we want to link // to LLVM shared, to avoid re-doing ThinLTO (which happens in // the link step) with each stage. |
