Skip to content

Commit 2fb1d0e

Browse files
authored
[SYCL] Fix spirv-to-ir-wrapper test dependencies (#6839)
If you build solely with with make target check-llvm, llvm-spirv won't be built. However, the tests for spirv-to-ir-wrapper call llvm-spirv, so we need to capture that dependency. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 904f184 commit 2fb1d0e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/test/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ if(TARGET LTO)
174174
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} LTO)
175175
endif()
176176

177+
if(TARGET spirv-to-ir-wrapper)
178+
set(LLVM_TEST_DEPENDS ${LLVM_TEST_DEPENDS} llvm-spirv)
179+
endif()
180+
177181
if(LLVM_BUILD_EXAMPLES)
178182
list(APPEND LLVM_TEST_DEPENDS
179183
Kaleidoscope-Ch3

0 commit comments

Comments
 (0)