================
@@ -1075,9 +1076,8 @@ void tools::addLTOOptions(const ToolChain &ToolChain, 
const ArgList &Args,
     Input = Inputs.begin();
   }
 
-  if (Linker != "lld" && Linker != "lld-link" &&
-      llvm::sys::path::filename(LinkerPath) != "ld.lld" &&
-      llvm::sys::path::stem(LinkerPath) != "ld.lld" && !Triple.isOSOpenBSD()) {
+  if (!LinkerIsLLD && Linker != "lld" && Linker != "lld-link" &&
----------------
petrhosek wrote:

`Linker != "lld" && Linker != "lld-link"` should ideally be covered by 
`GetLinkerPath` as well.

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

Reply via email to