[clang] [Driver][DragonFly] Fixes for linker path and command-line option handling (PR #69095)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sun Oct 15 09:29:00 PDT 2023


================
@@ -115,16 +117,15 @@ void dragonfly::Linker::ConstructJob(Compilation &C, const JobAction &JA,
           Args.MakeArgString(getToolChain().GetFilePath("crtbegin.o")));
   }
 
-  Args.addAllArgs(CmdArgs, {options::OPT_L, options::OPT_T_Group});
+  Args.addAllArgs(CmdArgs,
----------------
MaskRay wrote:

Drop -Z: ld64 specific linker option that is not in GNU ld or ld.lld

     -Z          Do not search the standard directories when searching for
                 libraries and frameworks.

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


More information about the cfe-commits mailing list