summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/MinGW/Options.td2
-rw-r--r--lld/test/MinGW/driver.test4
2 files changed, 5 insertions, 1 deletions
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td
index eff46a972e1..de3ac367d26 100644
--- a/lld/MinGW/Options.td
+++ b/lld/MinGW/Options.td
@@ -76,7 +76,7 @@ def: Joined<["-"], "O">;
def: F<"build-id">;
def: F<"disable-auto-image-base">;
def: F<"enable-auto-image-base">;
-def: F<"enable-auto-import">;
+def: F<"enable-auto-import">, HelpText<"Ignored; listed for libtool compatibility">;
def: F<"end-group">;
def: Flag<["--"], "full-shutdown">;
def: F<"high-entropy-va">;
diff --git a/lld/test/MinGW/driver.test b/lld/test/MinGW/driver.test
index 4c5bc36952e..94086e62cfc 100644
--- a/lld/test/MinGW/driver.test
+++ b/lld/test/MinGW/driver.test
@@ -174,3 +174,7 @@ APPCONTAINER: -appcontainer
# RUN: ld.lld -m i386pep -v 2>&1 | FileCheck -check-prefix=VERSION %s
# RUN: not ld.lld -m i386pep -v xyz 2>&1 | FileCheck -check-prefix=VERSION %s
# VERSION: LLD {{.*}} (compatible with GNU linkers)
+
+# RUN: ld.lld -m i386pep --help 2>&1 | FileCheck -check-prefix=HELP %s
+# HELP: USAGE:
+# HELP: --enable-auto-import
OpenPOWER on IntegriCloud