Index: MinGW/Options.td =================================================================== --- MinGW/Options.td +++ MinGW/Options.td @@ -76,7 +76,7 @@ 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: test/MinGW/driver.test =================================================================== --- test/MinGW/driver.test +++ test/MinGW/driver.test @@ -174,3 +174,7 @@ # 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