[clang] [LinkerWrapper] Fix a bunch of minor issues and typos (PR #183679)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 27 05:56:08 PST 2026


================
@@ -479,7 +469,10 @@ fatbinary(ArrayRef<std::tuple<StringRef, StringRef, StringRef>> InputFiles,
     CmdArgs.push_back(
         Args.MakeArgString(Twine("-compression-level=") + Arg->getValue()));
 
-  SmallVector<StringRef> Targets = {"-targets=host-x86_64-unknown-linux-gnu"};
+  llvm::Triple HostTriple(
+      Args.getLastArgValue(OPT_host_triple_EQ, sys::getDefaultTargetTriple()));
----------------
jhuber6 wrote:

That's a fallback if someone didn't pass it in, the clang invocation will always pass it in.

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


More information about the cfe-commits mailing list