[llvm] 889a1e6 - [llvm] [cmake] Export LLVM_ENABLE_NEW_PASS_MANAGER into LLVMConfig.cmake
Michał Górny via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 6 11:40:02 PDT 2021
Author: Michał Górny
Date: 2021-08-06T20:39:38+02:00
New Revision: 889a1e69bd2d65c368712ec653450099446aed33
URL: https://github.com/llvm/llvm-project/commit/889a1e69bd2d65c368712ec653450099446aed33
DIFF: https://github.com/llvm/llvm-project/commit/889a1e69bd2d65c368712ec653450099446aed33.diff
LOG: [llvm] [cmake] Export LLVM_ENABLE_NEW_PASS_MANAGER into LLVMConfig.cmake
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.
Differential Revision: https://reviews.llvm.org/D107628
Added:
Modified:
llvm/cmake/modules/LLVMConfig.cmake.in
Removed:
################################################################################
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
index 90a98406c0ed6..60b56b5152ea8 100644
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
@@ -76,6 +76,8 @@ set(LLVM_ENABLE_PIC @LLVM_ENABLE_PIC@)
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()
More information about the llvm-commits
mailing list