[PATCH] D107628: [llvm] [cmake] Export LLVM_ENABLE_NEW_PASS_MANAGER into LLVMConfig.cmake
Michał Górny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 6 02:03:30 PDT 2021
mgorny created this revision.
mgorny added reviewers: aeubanks, asbirlea, ychen, MaskRay, echristo, tstellar.
mgorny requested review of this revision.
Herald added a project: LLVM.
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.
https://reviews.llvm.org/D107628
Files:
llvm/cmake/modules/LLVMConfig.cmake.in
Index: llvm/cmake/modules/LLVMConfig.cmake.in
===================================================================
--- llvm/cmake/modules/LLVMConfig.cmake.in
+++ llvm/cmake/modules/LLVMConfig.cmake.in
@@ -76,6 +76,8 @@
set(LLVM_BUILD_32_BITS @LLVM_BUILD_32_BITS@)
+set(LLVM_ENABLE_NEW_PASS_MANAGER @LLVM_ENABLE_NEW_PASS_MANAGER@)
+
if (NOT "@LLVM_PTHREAD_LIB@" STREQUAL "")
set(LLVM_PTHREAD_LIB "@LLVM_PTHREAD_LIB@")
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107628.364728.patch
Type: text/x-patch
Size: 434 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210806/685b0cc1/attachment.bin>
More information about the llvm-commits
mailing list