Change LLVM BOLT flags

This commit is contained in:
Jakub Beránek 2023-07-27 21:31:06 +02:00
parent 9339f446a5
commit b996e5e95b
No known key found for this signature in database
GPG Key ID: 909CD0D26483516B

View File

@ -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()