This is an archive of the discontinued LLVM Phabricator instance.

[clang-tools-extra] [test] Fix test dependencies when using installed tools
ClosedPublic

Authored by mgorny on Feb 10 2017, 2:39 PM.

Details

Summary

Use the LLVM_UTILS_PROVIDED variable to determine whether test tool
dependencies should be exposed for clang-tools-extra tests. If clang is
being built stand-alone and LLVM test tools (FileCheck, count and not)
are installed, the top-level CMakeLists.txt of clang sets this variable
to indicate that they will not be built as a part of this build,
and therefore no dependencies should be emitted for them. This fixes
the dependency errors when building clang stand-alone with tests
enabled.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny created this revision.Feb 10 2017, 2:39 PM
beanz accepted this revision.Mar 14 2017, 3:32 PM

Ugh... I really don't like how LLVM_UTILS_PROVIDED is implemented, but I guess it is fine. This patch is good.

This revision is now accepted and ready to land.Mar 14 2017, 3:32 PM
This revision was automatically updated to reflect the committed changes.