This is an archive of the discontinued LLVM Phabricator instance.

[tools] Add explicit check for plugin-api.h
Needs ReviewPublic

Authored by dmantipov on May 22 2023, 1:40 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

When using regular (host) build environments (on RedHat and
alikes at least), LLVM_BINUTILS_INCDIR usually expands to
/usr/include, which is always present. Since plugin-api.h
comes from separate binutils-devel package, an absence of
the latter causes compilation error, which can be avoided
by adding explicit check for plugin-api.h.

Diff Detail

Event Timeline

dmantipov created this revision.May 22 2023, 1:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 1:40 AM
dmantipov requested review of this revision.May 22 2023, 1:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 1:40 AM