[cmake] Update lit search to match the one in LLVM
authorMichal Gorny <mgorny@gentoo.org>
Tue, 18 Oct 2016 17:07:30 +0000 (17:07 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Tue, 18 Oct 2016 17:07:30 +0000 (17:07 +0000)
commitda6d2b831527648cc8ea095336f11126ed454096
treeceb9923d05eaaee55b2b241688bc7703355ec501
parent08fff9ca81266dde1718bff85cffa64087af9e37
[cmake] Update lit search to match the one in LLVM

Update the lit search logic to support all names supported in LLVM
(since r283029). The search order (i.e. PATHS vs HINTS) does no really
matter since the established path is not used, except for determining
whether lit is available.

Differential Revision: https://reviews.llvm.org/D23745

llvm-svn: 284496
clang/CMakeLists.txt