================
@@ -1065,6 +1065,12 @@ void 
CodeGenAction::runOptimizationPipeline(llvm::raw_pwrite_stream &os) {
       llvmModule->addModuleFlag(llvm::Module::Error, "ThinLTO", uint32_t(0));
     }
 
+    if (opts.PrepareForFullLTO && opts.EnableSplitLTOUnit && emitSummary &&
+        !llvmModule->getModuleFlag("EnableSplitLTOUnit")) {
+      llvmModule->addModuleFlag(llvm::Module::Error, "EnableSplitLTOUnit",
+                                uint32_t(1));
+    }
+
----------------
kkwli wrote:

How about `-flto=thin`?

https://github.com/llvm/llvm-project/pull/202858
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to