[clang] [clang][driver][darwin] Add more libtool arguments used by SwiftBuild (PR #224428)

Steven Wu via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 18 13:48:52 PDT 2026


================
@@ -927,6 +927,11 @@ void darwin::StaticLibTool::ConstructJob(Compilation &C, const JobAction &JA,
 
   AddMachOSysLibRoot(C, Args, CmdArgs);
   Args.AddAllArgs(CmdArgs, options::OPT_L);
+  Args.AddAllArgs(CmdArgs, options::OPT_F);
+
+  // -iframework should be forwarded as -F.
----------------
cachemeifyoucan wrote:

Do you care about preserving the relative order of `-F` and `-iframework`? If so, you should just filter them together and add them in the order as user specified. 

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


More information about the cfe-commits mailing list