]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
Implement the -fuse-ld= option.
authoremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Feb 2015 22:32:32 +0000 (22:32 +0000)
committeremaste <emaste@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 25 Feb 2015 22:32:32 +0000 (22:32 +0000)
commit20127da96981281b9fc09f0da7f0db1697c9b4f1
tree9bcf4353dc620447ca7cbce552fc58d26b5fcc76
parentb62e9f8b8455be6baa119a68c80d4efbae5bf85d
Implement the -fuse-ld= option.

Merge upstream Clang revision 211785:
  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.

This is a direct commit to stable/10 as this is change is already
included in Clang 3.5 in HEAD. The patch is also reworked slightly for
Clang 3.4.1.

Reviewed by: dim
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@279302 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/llvm/tools/clang/include/clang/Basic/DiagnosticDriverKinds.td
contrib/llvm/tools/clang/include/clang/Driver/Options.td
contrib/llvm/tools/clang/include/clang/Driver/ToolChain.h
contrib/llvm/tools/clang/lib/Driver/ToolChain.cpp
contrib/llvm/tools/clang/lib/Driver/ToolChains.cpp
contrib/llvm/tools/clang/lib/Driver/Tools.cpp