diff options
Diffstat (limited to 'lld/lib/Driver')
| -rw-r--r-- | lld/lib/Driver/DarwinLdDriver.cpp | 3 | ||||
| -rw-r--r-- | lld/lib/Driver/DarwinLdOptions.td | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lld/lib/Driver/DarwinLdDriver.cpp b/lld/lib/Driver/DarwinLdDriver.cpp index 645a3efb650..723b6509395 100644 --- a/lld/lib/Driver/DarwinLdDriver.cpp +++ b/lld/lib/Driver/DarwinLdDriver.cpp @@ -658,6 +658,9 @@ bool DarwinLdDriver::parse(int argc, const char *argv[], case OPT_upward_library: addFile(arg->getValue(), inputGraph, ctx, false, true); break; + case OPT_force_load: + addFile(arg->getValue(), inputGraph, ctx, true, false); + break; case OPT_l: case OPT_upward_l: upward = (arg->getOption().getID() == OPT_upward_l); diff --git a/lld/lib/Driver/DarwinLdOptions.td b/lld/lib/Driver/DarwinLdOptions.td index d819c03aac0..eefb2c7b92d 100644 --- a/lld/lib/Driver/DarwinLdOptions.td +++ b/lld/lib/Driver/DarwinLdOptions.td @@ -107,6 +107,10 @@ def Z : Flag<["-"], "Z">, def all_load : Flag<["-"], "all_load">, HelpText<"Forces all members of all static libraries to be loaded">, Group<grp_libs>; +def force_load : Separate<["-"], "force_load">, + MetaVarName<"<library-path>">, + HelpText<"Forces all members of specified static libraries to be loaded">, + Group<grp_libs>; def syslibroot : Separate<["-"], "syslibroot">, MetaVarName<"<dir>">, HelpText<"Add path to SDK to all absolute library search paths">, Group<grp_libs>; |

