Commit 85556b07 authored by Tom Stellard's avatar Tom Stellard
Browse files

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
------------------------------------------------------------------------

llvm-svn: 304238
parent e47a2cdb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment