Skip to content

Commit

Permalink
Change LLVM BOLT flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Jul 28, 2023
1 parent 9339f44 commit b996e5e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bootstrap/bolt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ pub fn optimize_with_bolt(path: &Path, profile_path: &Path, output_path: &Path)
.arg("-icf=1")
// Update DWARF debug info in the final binary
.arg("-update-debug-sections")
// Try to reuse old text segments to reduce binary size
.arg("--use-old-text")
// Print optimization statistics
.arg("-dyno-stats")
.status()
Expand Down

0 comments on commit b996e5e

Please sign in to comment.