From: Derek Schuff Date: Mon, 24 Aug 2015 23:53:25 +0000 (+0000) Subject: Use GetLinkerPath utility function to find linker for NaCl toolchain X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=577d59904b385f3bd92707604d55ec14b273d153;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@245908 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp index 7d6d257fcb..cb4ec03a4c 100644 --- a/lib/Driver/ToolChains.cpp +++ b/lib/Driver/ToolChains.cpp @@ -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"); }