[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)

Anchu Rajendran S via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 17 11:11:49 PDT 2025


================
@@ -995,7 +995,12 @@ void CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) {
 
   // Create the pass manager.
   llvm::ModulePassManager mpm;
-  if (opts.PrepareForFullLTO)
+  if (opts.PrepareForFatLTO) {
+    bool emitSummary = opts.PrepareForThinLTO || opts.PrepareForFullLTO ||
+                       triple.getVendor() != llvm::Triple::Apple;
----------------
anchuraj wrote:

Thank you! Updated.

https://github.com/llvm/llvm-project/pull/158125


More information about the cfe-commits mailing list