[lld] r227144 - Accept -allow-shlib-undefined in addition to --allow-shlib-undefined.

Rui Ueyama ruiu at google.com
Mon Jan 26 14:13:53 PST 2015


Author: ruiu
Date: Mon Jan 26 16:13:53 2015
New Revision: 227144

URL: http://llvm.org/viewvc/llvm-project?rev=227144&view=rev
Log:
Accept -allow-shlib-undefined in addition to --allow-shlib-undefined.

GNU LD accepts both. CMake seems to use the former than the latter.

Modified:
    lld/trunk/lib/Driver/GnuLdOptions.td

Modified: lld/trunk/lib/Driver/GnuLdOptions.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/GnuLdOptions.td?rev=227144&r1=227143&r2=227144&view=diff
==============================================================================
--- lld/trunk/lib/Driver/GnuLdOptions.td (original)
+++ lld/trunk/lib/Driver/GnuLdOptions.td Mon Jan 26 16:13:53 2015
@@ -199,7 +199,7 @@ def no_allow_shlib_undefs : Flag<["--"],
      HelpText<"Do not allow undefined symbols from dynamic"
               " library when creating executables">,
      Group<grp_resolveropt>;
-def allow_shlib_undefs : Flag<["--"], "allow-shlib-undefined">,
+def allow_shlib_undefs : Flag<["-", "--"], "allow-shlib-undefined">,
      HelpText<"Allow undefined symbols from dynamic"
              " library when creating executables">,
      Group<grp_resolveropt>;





More information about the llvm-commits mailing list