This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Use llvm-lit directory when provided for stand-alone build
ClosedPublic

Authored by mgorny on Nov 16 2017, 11:12 AM.

Details

Summary

After the recent lit test changes, clang attempts to run its tests
via llvm-lit by default. However, the llvm-lit binary is not present
when performing stand-alone build resulting in a failure out of the box.

To solve that, add the llvm-lit directory to CMake when performing
a stand-alone build and LLVM sources are provided. This includes
the CMake rules generating the llvm-lit binary and effectively makes
it possible for clang to use it.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Nov 16 2017, 11:12 AM
zturner accepted this revision.Nov 17 2017, 2:12 PM
This revision is now accepted and ready to land.Nov 17 2017, 2:12 PM
This revision was automatically updated to reflect the committed changes.