This is an archive of the discontinued LLVM Phabricator instance.

[llvm] [cmake] Export LLVM_ENABLE_NEW_PASS_MANAGER into LLVMConfig.cmake
ClosedPublic

Authored by mgorny on Aug 6 2021, 2:03 AM.

Details

Summary

Include the vaue of LLVM_ENABLE_NEW_PASS_MANAGER in generated
LLVMConfig.cmake since it is needed by clang's build system. This fixes
test failures when the new pass manager is enabled (i.e. by default)
by having clang's CMake files correctly detect that and skip relevant
tests.

Diff Detail

Event Timeline

mgorny requested review of this revision.Aug 6 2021, 2:03 AM
mgorny created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 6 2021, 2:03 AM
asbirlea accepted this revision.Aug 6 2021, 10:00 AM
This revision is now accepted and ready to land.Aug 6 2021, 10:00 AM