Skip to content

Commit b996e5e

Browse files
committed
Change LLVM BOLT flags
1 parent 9339f44 commit b996e5e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bootstrap/bolt.rs

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ pub fn optimize_with_bolt(path: &Path, profile_path: &Path, output_path: &Path)
4949
.arg("-icf=1")
5050
// Update DWARF debug info in the final binary
5151
.arg("-update-debug-sections")
52+
// Try to reuse old text segments to reduce binary size
53+
.arg("--use-old-text")
5254
// Print optimization statistics
5355
.arg("-dyno-stats")
5456
.status()

0 commit comments

Comments
 (0)