[PATCH] Implement the -fuse-ld= option.
Logan Chien
tzuhsiang.chien at gmail.com
Wed Jun 25 11:07:09 PDT 2014
Hi theraven, rafael,
This commit implements the -fuse-ld= option, so that the user
can specify -fuse-ld=bfd to use ld.bfd.
This commit re-applies r194328 with some test case changes.
It seems that r194328 was breaking macosx or mingw build
because clang can't find ld.bfd or ld.gold in the given sysroot.
We should use -B to specify the executable search path instead.
Patch originally by David Chisnall.
http://reviews.llvm.org/D4295
Files:
include/clang/Basic/DiagnosticDriverKinds.td
include/clang/Driver/Options.td
include/clang/Driver/ToolChain.h
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains.cpp
lib/Driver/Tools.cpp
test/Driver/Inputs/basic_android_tree/arm-linux-androideabi/bin/ld
test/Driver/Inputs/basic_android_tree/arm-linux-androideabi/bin/ld.bfd
test/Driver/Inputs/basic_android_tree/arm-linux-androideabi/bin/ld.gold
test/Driver/Inputs/basic_android_tree/bin/arm-linux-androideabi-ld
test/Driver/Inputs/basic_android_tree/bin/arm-linux-androideabi-ld.bfd
test/Driver/Inputs/basic_android_tree/bin/arm-linux-androideabi-ld.gold
test/Driver/Inputs/basic_freebsd_tree/usr/bin/ld.bfd
test/Driver/Inputs/basic_freebsd_tree/usr/bin/ld.gold
test/Driver/fuse-ld.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4295.10842.patch
Type: text/x-patch
Size: 9438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140625/d3c3500d/attachment.bin>
More information about the cfe-commits
mailing list