Skip to content

Commit

Permalink
[MinGW] Include --enable-auto-import in the help listing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mstorsjo committed May 17, 2019
1 parent 6863dfa commit 6ff6a8f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lld/MinGW/Options.td
Original file line number Diff line number Diff line change
Expand Up @@ -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">;
Expand Down
4 changes: 4 additions & 0 deletions lld/test/MinGW/driver.test
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6ff6a8f

Please sign in to comment.