[llvm] cace986 - Export empty vt_gen target (for standalone builds) (#109817)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 14:11:45 PDT 2024
Author: Evan Wilde
Date: 2024-09-24T14:11:42-07:00
New Revision: cace9869775a185793122f845d81a5ff46f15728
URL: https://github.com/llvm/llvm-project/commit/cace9869775a185793122f845d81a5ff46f15728
DIFF: https://github.com/llvm/llvm-project/commit/cace9869775a185793122f845d81a5ff46f15728.diff
LOG: Export empty vt_gen target (for standalone builds) (#109817)
Fixing the standalone builds by exporting the vt_gen target so that the
sources of the clangCodeGen target can form an explicit dependency edge
on it.
Added:
Modified:
llvm/cmake/modules/CMakeLists.txt
llvm/cmake/modules/LLVMConfig.cmake.in
Removed:
################################################################################
diff --git a/llvm/cmake/modules/CMakeLists.txt b/llvm/cmake/modules/CMakeLists.txt
index d99af79aa38e0e..ef4cfa3acdb596 100644
--- a/llvm/cmake/modules/CMakeLists.txt
+++ b/llvm/cmake/modules/CMakeLists.txt
@@ -36,6 +36,9 @@ endif()
if(omp_gen IN_LIST LLVM_COMMON_DEPENDS)
list(REMOVE_ITEM LLVM_COMMON_DEPENDS omp_gen)
endif()
+if(vt_gen IN_LIST LLVM_COMMON_DEPENDS)
+ list(REMOVE_ITEM LLVM_COMMON_DEPENDS vt_gen)
+endif()
#
# Generate LLVMConfig.cmake for the build tree.
diff --git a/llvm/cmake/modules/LLVMConfig.cmake.in b/llvm/cmake/modules/LLVMConfig.cmake.in
index 7e1501a89354c8..c49f10b9343ff8 100644
--- a/llvm/cmake/modules/LLVMConfig.cmake.in
+++ b/llvm/cmake/modules/LLVMConfig.cmake.in
@@ -151,6 +151,9 @@ endif()
if(NOT TARGET intrinsics_gen)
add_custom_target(intrinsics_gen)
endif()
+if(NOT TARGET vt_gen)
+ add_custom_target(vt_gen)
+endif()
if(NOT TARGET omp_gen)
add_custom_target(omp_gen)
endif()
More information about the llvm-commits
mailing list