[MinGW] Include --enable-auto-import in the help listing
authorMartin Storsjo <martin@martin.st>
Fri, 17 May 2019 11:07:46 +0000 (11:07 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 17 May 2019 11:07:46 +0000 (11:07 +0000)
Libtool concludes that the linker doesn't support shared libraries,
unless this flag is listed in the output of --help.

Differential Revision: https://reviews.llvm.org/D62053

llvm-svn: 361017

lld/MinGW/Options.td
lld/test/MinGW/driver.test

index eff46a972e1d762bd9ad9738ce01e2eaf017811e..de3ac367d26753aa59135ffce800934c9a9e14c1 100644 (file)
@@ -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">;
index 4c5bc36952ea10512324567732dc922ffcc9be66..94086e62cfc26616d4976c7e7fa9dda31896dc06 100644 (file)
@@ -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