From ab9c98c70de2903f2ffaf7710255f8913d35edf5 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Thu, 26 Oct 2017 20:12:01 +0000 Subject: [PATCH] [MinGW] Ignore the --enable-auto-import flag In GNU ld, this option is enabled by default, but can be set to reduce some warnings. For lld, ignore the flag (for now); in case linking still succeeds everything should be fine, if not, it should be clear to the user what part failed (possibly requiring adjusting the user project to not rely on this feature), instead of straight out failing due to an unknown flag. Differential Revision: https://reviews.llvm.org/D39330 llvm-svn: 316693 --- lld/MinGW/Options.td | 1 + 1 file changed, 1 insertion(+) diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index 94ea9cf53714..1832ec539e01 100644 --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -37,6 +37,7 @@ def Bdynamic: F<"Bdynamic">, HelpText<"Link against shared libraries">; def Bstatic: F<"Bstatic">, HelpText<"Do not link against shared libraries">; def O: Joined<["-"], "O">, HelpText<"Optimize output file size">; def enable_auto_image_base: F<"enable-auto-image-base">; +def enable_auto_import: F<"enable-auto-import">; def full_shutdown: Flag<["--"], "full-shutdown">; def major_image_version: S<"major-image-version">; def minor_image_version: S<"minor-image-version">;