r245908 - Use GetLinkerPath utility function to find linker for NaCl toolchain

Derek Schuff via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 24 16:53:25 PDT 2015


Author: dschuff
Date: Mon Aug 24 18:53:25 2015
New Revision: 245908

URL: http://llvm.org/viewvc/llvm-project?rev=245908&view=rev
Log:
Use GetLinkerPath utility function to find linker for NaCl toolchain

Summary:
This is more consistent with other targets and also makes the -fuse-ld
flag work.

Reviewers: jvoung

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10697

Modified:
    cfe/trunk/lib/Driver/ToolChains.cpp

Modified: cfe/trunk/lib/Driver/ToolChains.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp?rev=245908&r1=245907&r2=245908&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/ToolChains.cpp (original)
+++ cfe/trunk/lib/Driver/ToolChains.cpp Mon Aug 24 18:53:25 2015
@@ -2359,7 +2359,7 @@ NaClToolChain::NaClToolChain(const Drive
   }
 
   // Use provided linker, not system linker
-  Linker = GetProgramPath("ld");
+  Linker = GetLinkerPath();
   NaClArmMacrosPath = GetFilePath("nacl-arm-macros.s");
 }
 




More information about the cfe-commits mailing list