[gold] Consolidate the gold plugin options and actually search for
authorChandler Carruth <chandlerc@gmail.com>
Sat, 14 Feb 2015 09:43:57 +0000 (09:43 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sat, 14 Feb 2015 09:43:57 +0000 (09:43 +0000)
commit15db81893f14159659af9d07af1e8fc7a6acd5fa
treefa8b5737e996cfad5891da5bb22b69c0368de7a0
parent96db150cec56fcbfb3f32554ae85f19cf7de9c3e
[gold] Consolidate the gold plugin options and actually search for
a gold binary explicitly. Substitute this binary into the tests rather
than just directly executing the 'ld' binary.

This should allow folks to inject a cross compiling gold binary, or in
my case to use a gold binary built and installed somewhere other than
/usr/bin/ld. It should also allow the tests to find 'ld.gold' so that
things work even if gold isn't the default on the system.

I've only stubbed out support in the makefile to preserve the existing
behavior with none of the fancy logic. If someone else wants to add
logic here, they're welcome to do so.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229251 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
cmake/config-ix.cmake
test/Makefile
test/lit.cfg
test/lit.site.cfg.in
test/tools/gold/alias.ll
test/tools/gold/bad-alias.ll
test/tools/gold/bcsection.ll
test/tools/gold/coff.ll
test/tools/gold/comdat.ll
test/tools/gold/common.ll
test/tools/gold/emit-llvm.ll
test/tools/gold/invalid.ll
test/tools/gold/linker-script.ll
test/tools/gold/linkonce-weak.ll
test/tools/gold/mtriple.ll
test/tools/gold/no-map-whole-file.ll
test/tools/gold/option.ll
test/tools/gold/pr19901.ll
test/tools/gold/slp-vectorize.ll
test/tools/gold/stats.ll
test/tools/gold/vectorize.ll
test/tools/gold/weak.ll
tools/gold/CMakeLists.txt