================
@@ -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:

List at the top as in the definition of `CmdArgs` right above?

We don't want to propagate this unconditionally because it could change the 
behavior and would also make this inconsistent with the default behavior of the 
clang driver.

We need to change the way we get the directory of the current executable 
because otherwise we cannot resolve the path to `clang` if 
`clang-linker-wrapper` is a symlink in a directory that contains `clang` to a 
file in a directory that does not contain a binary named `clang`.

https://github.com/llvm/llvm-project/pull/184160
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to