This is an archive of the discontinued LLVM Phabricator instance.

[cmake] Export driver template to fix standalone build
ClosedPublic

Authored by nikic on Jun 9 2022, 1:54 AM.

Details

Summary

Export the driver-template.cpp.in file so that tools using GENERATE_DRIVER work in standalone builds (currently only relevant for clang). I've given the file an llvm- prefix, as we're now searching for the file in CMAKE_MODULE_PATH.

Diff Detail

Event Timeline

nikic created this revision.Jun 9 2022, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 1:54 AM
Herald added a subscriber: mgorny. · View Herald Transcript
nikic requested review of this revision.Jun 9 2022, 1:54 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 9 2022, 1:54 AM
chapuni added a subscriber: chapuni.Jun 9 2022, 1:57 AM
abrachet accepted this revision.Jun 9 2022, 1:31 PM
abrachet added inline comments.
llvm/cmake/modules/AddLLVM.cmake
899

Should we just break() out of the loop here?

This revision is now accepted and ready to land.Jun 9 2022, 1:31 PM
This revision was landed with ongoing or failed builds.Jun 10 2022, 12:51 AM
This revision was automatically updated to reflect the committed changes.
nikic marked an inline comment as done.