This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Update lit search to match the one in LLVM
ClosedPublic

Authored by mgorny on Aug 20 2016, 4:59 AM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny updated this revision to Diff 68776.Aug 20 2016, 4:59 AM
mgorny retitled this revision from to cmake: Adjust llvm-lit search to match the one in LLVM.
mgorny updated this object.
mgorny added reviewers: chapuni, garious.
mgorny added a subscriber: cfe-commits.
mgorny planned changes to this revision.Sep 2 2016, 11:59 AM

Let's wait for the reply on D23743.

mgorny updated this revision to Diff 73192.Oct 1 2016, 3:04 AM
mgorny retitled this revision from cmake: Adjust llvm-lit search to match the one in LLVM to [cmake] Update lit search to match the one in LLVM.
mgorny updated this object.

A gentle ping here.

beanz edited edge metadata.Oct 17 2016, 9:28 PM

Is there a bug you're trying to fix here? It seems to me that the existing behavior works correctly. I'm also pretty sure from the comment in D23743 that llvm-lit shouldn't be in the list.

Is there a bug you're trying to fix here? It seems to me that the existing behavior works correctly. I'm also pretty sure from the comment in D23743 that llvm-lit shouldn't be in the list.

I'm trying to sync clang to core llvm, so that the lit search results match. For example, on my system clang would not be able to find lit and it would assume that it isn't installed while llvm (and therefore add_lit_testsuite) would find lit just fine.

beanz accepted this revision.Oct 18 2016, 10:07 AM
beanz edited edge metadata.

Gotcha. LGTM!

This revision is now accepted and ready to land.Oct 18 2016, 10:07 AM
This revision was automatically updated to reflect the committed changes.