[lld] Add (ignored) /link flag to lld-link for compatibility with MSVC link.exe (PR #168364)
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 17 05:41:44 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?";
----------------
aganea wrote:
Is there any value for this message? We can silently ignore the flng and nothing bad will happen.
https://github.com/llvm/llvm-project/pull/168364
More information about the llvm-commits
mailing list