[lld] Add (ignored) /link flag to lld-link for compatibility with MSVC link.exe (PR #168364)
Frankie Robertson via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 17 05:45:36 PST 2025
================
@@ -862,6 +862,9 @@ opt::InputArgList ArgParser::parse(ArrayRef<const char *> argv) {
<< "', did you mean '" << nearest << "'";
}
+ if (args.hasArg(OPT_link))
+ Warn(ctx) << "ignoring /link, did you pass it multiple times?";
----------------
frankier wrote:
I did this to match link.exe which gives a warning.
https://github.com/llvm/llvm-project/pull/168364
More information about the llvm-commits
mailing list