================
@@ -282,6 +282,14 @@ void Flang::addLTOOptions(const ArgList &Args, 
ArgStringList &CmdArgs) const {
     CmdArgs.push_back("-flto=full");
   else if (LTOMode == LTOK_Thin)
     CmdArgs.push_back("-flto=thin");
+
+  if (Arg *splitLTOArg = Args.getLastArg(options::OPT_fsplit_lto_unit,
+                                         options::OPT_fno_split_lto_unit)) {
+    if (splitLTOArg->getOption().matches(options::OPT_fsplit_lto_unit)) {
+      CmdArgs.push_back("-fsplit-lto-unit");
+    }
+  }
----------------
shivaramaarao wrote:

incorporated the changes

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