[lld] r361017 - [MinGW] Include --enable-auto-import in the help listing

Martin Storsjo via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 04:07:46 PDT 2019


Author: mstorsjo
Date: Fri May 17 04:07:46 2019
New Revision: 361017

URL: http://llvm.org/viewvc/llvm-project?rev=361017&view=rev
Log:
[MinGW] Include --enable-auto-import in the help listing

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

Modified:
    lld/trunk/MinGW/Options.td
    lld/trunk/test/MinGW/driver.test

Modified: lld/trunk/MinGW/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/MinGW/Options.td?rev=361017&r1=361016&r2=361017&view=diff
==============================================================================
--- lld/trunk/MinGW/Options.td (original)
+++ lld/trunk/MinGW/Options.td Fri May 17 04:07:46 2019
@@ -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">;

Modified: lld/trunk/test/MinGW/driver.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/MinGW/driver.test?rev=361017&r1=361016&r2=361017&view=diff
==============================================================================
--- lld/trunk/test/MinGW/driver.test (original)
+++ lld/trunk/test/MinGW/driver.test Fri May 17 04:07:46 2019
@@ -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




More information about the llvm-commits mailing list