Skip to content

Commit b4b5ab9

Browse files
committed
Auto merge of rust-lang#141117 - klensy:opt-dist-icf, r=<try>
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 llvm/llvm-project#116275 Btw, now there also exist new option `-icf=safe`, will be nice to try it too.
2 parents ae3b909 + 40e3b80 commit b4b5ab9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/opt-dist/src/bolt.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ pub fn bolt_optimize(
8080
// Move jump tables to a separate section
8181
.arg("-jump-tables=move")
8282
// Fold functions with identical code
83-
.arg("-icf=1")
83+
.arg("-icf=all")
8484
// The following flag saves about 50 MiB of libLLVM.so size.
8585
// However, it succeeds very non-deterministically. To avoid frequent artifact size swings,
8686
// it is kept disabled for now.

0 commit comments

Comments
 (0)