[PATCH] D116484: [lld][MinGW] Ignore `--[no-]as-neeed` flags in MinGW driver
Markus Böck via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 1 14:27:01 PST 2022
zero9178 created this revision.
zero9178 added reviewers: mstorsjo, mati865.
Herald added a subscriber: dang.
zero9178 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
These flags are specific to ELF, but are still accepted by GNU ld, even if it does not do anything. This patch adds them as ignored option for the sake of compatibility.
Part of https://github.com/llvm/llvm-project/issues/52947
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D116484
Files:
lld/MinGW/Options.td
Index: lld/MinGW/Options.td
===================================================================
--- lld/MinGW/Options.td
+++ lld/MinGW/Options.td
@@ -146,6 +146,7 @@
// Ignored options
def: Joined<["-"], "O">;
+def: F<"as-needed">;
def: F<"build-id">;
def: F<"disable-auto-image-base">;
def: F<"enable-auto-image-base">;
@@ -153,6 +154,7 @@
def: Flag<["--"], "full-shutdown">;
defm: EqNoHelp<"major-image-version">;
defm: EqNoHelp<"minor-image-version">;
+def: F<"no-as-needed">;
def: F<"no-undefined">;
def: F<"pic-executable">;
defm: EqNoHelp<"plugin">;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D116484.396881.patch
Type: text/x-patch
Size: 569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220101/bd8b06b0/attachment.bin>
More information about the llvm-commits
mailing list