[PATCH] D39330: [LLD] [MinGW] Ignore the --enable-auto-import flag

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 26 03:40:32 PDT 2017


mstorsjo created this revision.

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.


https://reviews.llvm.org/D39330

Files:
  MinGW/Options.td


Index: MinGW/Options.td
===================================================================
--- MinGW/Options.td
+++ MinGW/Options.td
@@ -37,6 +37,7 @@
 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">;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39330.120385.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171026/f298480c/attachment.bin>


More information about the llvm-commits mailing list