[PATCH] D37707: [LLD] [MinGW] Ignore the sysroot parameter
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 13:37:34 PDT 2017
mstorsjo created this revision.
Herald added a subscriber: mehdi_amini.
If the sysroot parameter is passed to the clang frontend, clang already uses it to find libraries and adds -L options for it, but also passes it on to the linker. Therefore we can get pretty far by just ignoring it altogether.
https://reviews.llvm.org/D37707
Files:
MinGW/Options.td
Index: MinGW/Options.td
===================================================================
--- MinGW/Options.td
+++ MinGW/Options.td
@@ -33,6 +33,7 @@
def O: Joined<["-"], "O">, HelpText<"Optimize output file size">;
def v: Flag<["-"], "v">, HelpText<"Display the version number">;
def version: F<"version">, HelpText<"Display the version number and exit">;
+def sysroot: J<"sysroot">, HelpText<"Sysroot">;
// Alias
def alias_entry_e: JoinedOrSeparate<["-"], "e">, Alias<entry>;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37707.114673.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/5ed19b87/attachment.bin>
More information about the llvm-commits
mailing list