From 6ff6a8f656eeb59f2051568334b82e1615bdca48 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 17 May 2019 11:07:46 +0000 Subject: [PATCH] [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 llvm-svn: 361017 --- lld/MinGW/Options.td | 2 +- lld/test/MinGW/driver.test | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index eff46a972e1d..de3ac367d267 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 4c5bc36952ea..94086e62cfc2 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 -- 2.34.1