[lld] 1b708b6 - [lld][MinGW] Ignore `--[no-]as-neeed` flags in MinGW driver
Markus Böck via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 2 03:07:02 PST 2022
Author: Markus Böck
Date: 2022-01-02T12:03:21+01:00
New Revision: 1b708b67f625507cf2c24319b30479cc2af41c86
URL: https://github.com/llvm/llvm-project/commit/1b708b67f625507cf2c24319b30479cc2af41c86
DIFF: https://github.com/llvm/llvm-project/commit/1b708b67f625507cf2c24319b30479cc2af41c86.diff
LOG: [lld][MinGW] Ignore `--[no-]as-neeed` flags in MinGW driver
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
Differential Revision: https://reviews.llvm.org/D116484
Added:
Modified:
lld/MinGW/Options.td
Removed:
################################################################################
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td
index 50ac71bced850..c38b0710d39b4 100644
--- a/lld/MinGW/Options.td
+++ b/lld/MinGW/Options.td
@@ -146,6 +146,7 @@ def alias_undefined_u: JoinedOrSeparate<["-"], "u">, Alias<undefined>;
// 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: F<"end-group">;
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">;
More information about the llvm-commits
mailing list