[clang] [ToolChains][FreeBSD] Pass -s to Linker (PR #192853)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sun Apr 19 11:31:03 PDT 2026


================
@@ -150,6 +150,9 @@ void freebsd::Linker::ConstructJob(Compilation &C, const JobAction &JA,
   if (!D.SysRoot.empty())
     CmdArgs.push_back(Args.MakeArgString("--sysroot=" + D.SysRoot));
 
+  if (Args.hasArg(options::OPT_s))
----------------
MaskRay wrote:

This should be tested. We should also call `addAddArgs`. I am improving Linux/Gnu tests now.

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


More information about the cfe-commits mailing list