From b996e5e95b45c040d22c20b7b5f6968c29bfbea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Ber=C3=A1nek?= Date: Thu, 27 Jul 2023 21:31:06 +0200 Subject: [PATCH] Change LLVM BOLT flags --- src/bootstrap/bolt.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootstrap/bolt.rs b/src/bootstrap/bolt.rs index 5384181ea687d..017c4602d4366 100644 --- a/src/bootstrap/bolt.rs +++ b/src/bootstrap/bolt.rs @@ -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()