[lld] r253477 - Accept -whole-archive and -no-whole-archive (with a single dash)

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 18 09:22:03 PST 2015


Author: emaste
Date: Wed Nov 18 11:22:02 2015
New Revision: 253477

URL: http://llvm.org/viewvc/llvm-project?rev=253477&view=rev
Log:
Accept -whole-archive and -no-whole-archive (with a single dash)

Clang uses the single-dash version in addSanitizerRuntime().

Modified:
    lld/trunk/ELF/Options.td

Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=253477&r1=253476&r2=253477&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Wed Nov 18 11:22:02 2015
@@ -67,7 +67,7 @@ def no_allow_shlib_undefined : Flag<["--
 
 def no_as_needed : Flag<["--"], "no-as-needed">;
 
-def no_whole_archive : Flag<["--"], "no-whole-archive">,
+def no_whole_archive : Flag<["--", "-"], "no-whole-archive">,
   HelpText<"Restores the default behavior of loading archive members">;
 
 def noinhibit_exec : Flag<["--"], "noinhibit-exec">,
@@ -103,7 +103,7 @@ def undefined : Joined<["--"], "undefine
 
 def verbose : Flag<["--"], "verbose">;
 
-def whole_archive : Flag<["--"], "whole-archive">,
+def whole_archive : Flag<["--", "-"], "whole-archive">,
   HelpText<"Force load of all members in a static library">;
 
 def z : JoinedOrSeparate<["-"], "z">, MetaVarName<"<option>">,




More information about the llvm-commits mailing list