summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Maste <emaste@freebsd.org>2015-11-18 17:22:02 +0000
committerEd Maste <emaste@freebsd.org>2015-11-18 17:22:02 +0000
commitc98805b493ce46a66cfdaee766f8cb5ea1601b32 (patch)
tree5688187bcb2e1001bda1111d1b785078da7f5cde
parentd617e4406522a013a85c5bbdae434cb814eb29c9 (diff)
downloadbcm5719-llvm-c98805b493ce46a66cfdaee766f8cb5ea1601b32.tar.gz
bcm5719-llvm-c98805b493ce46a66cfdaee766f8cb5ea1601b32.zip
Accept -whole-archive and -no-whole-archive (with a single dash)
Clang uses the single-dash version in addSanitizerRuntime(). llvm-svn: 253477
-rw-r--r--lld/ELF/Options.td4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td
index 1914c658ffd..ef476bea2de 100644
--- a/lld/ELF/Options.td
+++ b/lld/ELF/Options.td
@@ -67,7 +67,7 @@ def no_allow_shlib_undefined : Flag<["--"], "no-allow-shlib-undefined">;
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<["--"], "undefined=">,
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>">,
OpenPOWER on IntegriCloud