Skip to content

Commit a5bdaaf

Browse files
etcwildeporglezomp
authored andcommitted
Export empty vt_gen target (for standalone builds) (llvm#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. (cherry picked from commit cace986)
1 parent 34bec34 commit a5bdaaf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

llvm/cmake/modules/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ endif()
3636
if(omp_gen IN_LIST LLVM_COMMON_DEPENDS)
3737
list(REMOVE_ITEM LLVM_COMMON_DEPENDS omp_gen)
3838
endif()
39+
if(vt_gen IN_LIST LLVM_COMMON_DEPENDS)
40+
list(REMOVE_ITEM LLVM_COMMON_DEPENDS vt_gen)
41+
endif()
3942

4043
#
4144
# Generate LLVMConfig.cmake for the build tree.

llvm/cmake/modules/LLVMConfig.cmake.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ endif()
151151
if(NOT TARGET intrinsics_gen)
152152
add_custom_target(intrinsics_gen)
153153
endif()
154+
if(NOT TARGET vt_gen)
155+
add_custom_target(vt_gen)
156+
endif()
154157
if(NOT TARGET omp_gen)
155158
add_custom_target(omp_gen)
156159
endif()

0 commit comments

Comments
 (0)