diff options
| author | Stuart Cook <Zalathar@users.noreply.github.com> | 2025-05-19 21:10:43 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-19 21:10:43 +1000 |
| commit | 5d7e5803508a4791e0fcc39f8f78926df60b23d4 (patch) | |
| tree | ea44e2f10a06887d9fa6f8f8442292bc78251edc | |
| parent | 3b22c21dd8c30f499051fe7a758ca0e5d81eb638 (diff) | |
| parent | 40e3b804e5a2c1b27b94c599e159ff8918fe9fc2 (diff) | |
| download | rust-5d7e5803508a4791e0fcc39f8f78926df60b23d4.tar.gz rust-5d7e5803508a4791e0fcc39f8f78926df60b23d4.zip | |
Rollup merge of #141117 - klensy:opt-dist-icf, r=Kobzol
opt-dist: fix deprecated BOLT -icf=1 option Replaced deprecated `-icf=1` BOLT option. Spotted in recent CI run (https://github.com/rust-lang-ci/rust/actions/runs/15080898417/job/42397253162): ``` BOLT-WARNING: specifying numeric value "1" for option -icf is deprecated ``` Change was added in https://github.com/llvm/llvm-project/pull/116275 Btw, now there also exist new option `-icf=safe`, will be nice to try it too.
| -rw-r--r-- | src/tools/opt-dist/src/bolt.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/opt-dist/src/bolt.rs b/src/tools/opt-dist/src/bolt.rs index 0f1fda38115..a06e59fcc41 100644 --- a/src/tools/opt-dist/src/bolt.rs +++ b/src/tools/opt-dist/src/bolt.rs @@ -80,7 +80,7 @@ pub fn bolt_optimize( // Move jump tables to a separate section .arg("-jump-tables=move") // Fold functions with identical code - .arg("-icf=1") + .arg("-icf=all") // The following flag saves about 50 MiB of libLLVM.so size. // However, it succeeds very non-deterministically. To avoid frequent artifact size swings, // it is kept disabled for now. |
