[clang] [LinkerWrapper] Add support for --no-canonical-prefixes (PR #184160)

Aiden Grossman via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 2 13:46:22 PST 2026


================
@@ -532,6 +537,9 @@ Expected<StringRef> clang(ArrayRef<StringRef> InputFiles, const ArgList &Args,
       Args.MakeArgString("--target=" + Triple.getTriple()),
   };
 
+  if (!CanonicalPrefixes)
+    CmdArgs.push_back("-no-canonical-prefixes");
----------------
boomanaiden154 wrote:

Done. Required making `clang-linker-wrapper` accept `-no-canonical-prefixes` rather than `--no-canonical-prefixes` which I guess is inconsistent with the rest of the `clang-linker-wrapper` options, but makes it more consistent with the clang driver.

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


More information about the cfe-commits mailing list