[PATCH] Use GetLinkerPath utility function to find linker for NaCl toolchain

Derek Schuff dschuff at google.com
Wed Jun 24 10:23:08 PDT 2015


Hi jvoung,

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

http://reviews.llvm.org/D10697

Files:
  lib/Driver/ToolChains.cpp

Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp
+++ lib/Driver/ToolChains.cpp
@@ -2402,7 +2402,7 @@
   }
 
   // Use provided linker, not system linker
-  Linker = GetProgramPath("ld");
+  Linker = GetLinkerPath();
   NaClArmMacrosPath = GetFilePath("nacl-arm-macros.s");
 }

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10697.28364.patch
Type: text/x-patch
Size: 360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150624/d49d20a0/attachment.bin>


More information about the llvm-commits mailing list