Merging r293630:

------------------------------------------------------------------------
r293630 | mgorny | 2017-01-31 09:10:20 -0500 (Tue, 31 Jan 2017) | 22 lines

[cmake] Support running tests in stand-alone builds

Add the CMake bits necessary to run lld tests (and unittests) when
building stand-alone. The code is based on the equivalent code in clang,
and includes:

1. checking for Python, searching for lit and necessary LLVM test tools
(FileCount and not),

2. building LLVM test tools (FileCount and not) from LLVM sources if
they are not installed,

3. building gtest libraries from LLVM sources,

4. adjusting dependencies so that test targets depend only on those LLVM
targets that are available for a particular variant of stand-alone
build.

With this patch, I am able to successfully run 1002 (+10 unsupported)
lit tests on Gentoo using installed LLVM.

Differential Revision: https://reviews.llvm.org/D28750
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/lld/branches/release_40@304238 91177308-0d34-0410-b5e6-96231b3b80d8
2 files changed
tree: 7f40080a5eb3ac8fdd72f8dbf62d2ca724fba91b
  1. .arcconfig
  2. .clang-format
  3. .gitignore
  4. CMakeLists.txt
  5. CODE_OWNERS.TXT
  6. COFF/
  7. ELF/
  8. LICENSE.TXT
  9. README.md
  10. cmake/
  11. docs/
  12. include/
  13. lib/
  14. test/
  15. tools/
  16. unittests/
README.md

LLVM Linker (lld)

This directory and its subdirectories contain source code for the LLVM Linker, a modular cross platform linker which is built as part of the LLVM compiler infrastructure project.

lld is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt.