This is an archive of the discontinued LLVM Phabricator instance.

Add Clang dependency to the check for Clang C++ headers.
ClosedPublic

Authored by george.karpenkov on Aug 24 2017, 3:59 PM.

Details

Summary

The problem is that CMake is mostly imperative and the result of
processing "if (TARGET blah)" checks depends on the order of import of
CMake files.
In this case, "projects" folder is registered before "tools",
and calling "CheckClangHeaders" [renamed to have a better name]
errors out without even giving Clang a chance to be built.

This, in turn, leads to libFuzzer bot failures in some circumstances on
some machines (depends on whether LIT or UNIT tests are scheduled
first).

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek accepted this revision.Aug 24 2017, 4:26 PM

LGTM (assuming standalone compiler-rt build still works)

This revision is now accepted and ready to land.Aug 24 2017, 4:26 PM
This revision was automatically updated to reflect the committed changes.