]> granicus.if.org Git - clang/commitdiff
Use GetLinkerPath utility function to find linker for NaCl toolchain
authorDerek Schuff <dschuff@google.com>
Mon, 24 Aug 2015 23:53:25 +0000 (23:53 +0000)
committerDerek Schuff <dschuff@google.com>
Mon, 24 Aug 2015 23:53:25 +0000 (23:53 +0000)
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245908 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains.cpp

index 7d6d257fcb03336909662a57f03000b4679429ad..cb4ec03a4ca125c99eb4a28dbfc87c17fcddf8c6 100644 (file)
@@ -2359,7 +2359,7 @@ NaClToolChain::NaClToolChain(const Driver &D, const llvm::Triple &Triple,
   }
 
   // Use provided linker, not system linker
-  Linker = GetProgramPath("ld");
+  Linker = GetLinkerPath();
   NaClArmMacrosPath = GetFilePath("nacl-arm-macros.s");
 }