[lld] r235282 - Accept --dynamic-linker <file>.

Davide Italiano davide at freebsd.org
Sun Apr 19 16:45:41 PDT 2015


Author: davide
Date: Sun Apr 19 18:45:41 2015
New Revision: 235282

URL: http://llvm.org/viewvc/llvm-project?rev=235282&view=rev
Log:
Accept --dynamic-linker <file>.

Before we only accepted --dynamic-linker=<file> and -dynamic-linker <file>
but older versions of GNU ld (e.g. 2.17.50) accept this other form, so
try to be compatible.

PR:		23233

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=235282&r1=235281&r2=235282&view=diff
==============================================================================
--- lld/trunk/lib/Driver/GnuLdOptions.td (original)
+++ lld/trunk/lib/Driver/GnuLdOptions.td Sun Apr 19 18:45:41 2015
@@ -151,7 +151,7 @@ def grp_dynlibexec : OptionGroup<"opts">
 def dynamic_linker : Joined<["--"], "dynamic-linker=">,
     HelpText<"Set the path to the dynamic linker">, Group<grp_dynlibexec>;
 // Executable options - compatibility aliases
-def dynamic_linker_alias : Separate<["-"], "dynamic-linker">,
+def dynamic_linker_alias : Separate<["-", "--"], "dynamic-linker">,
     Alias<dynamic_linker>;
 defm rpath : dashEq<"rpath", "rpath",
      "Add a directory to the runtime library search path">,





More information about the llvm-commits mailing list