Skip to content

Commit d94ff34

Browse files
saininavAlexeySotkin
authored andcommitted
Building in-tree with LLVM 10.0 with the LLVM_LINK_LLVM_DYLIB
Failed to link with the LLVMSPIRVLib library. Add an explicit dependency to force the correct build order and linking. Reference: KhronosGroup/SPIRV-LLVM-Translator@a6d4ccf Signed-off-by: Naveen Saini <[email protected]>
1 parent 8383774 commit d94ff34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ link_directories(
208208

209209
set(OPENCL_CLANG_LINK_LIBS ${CMAKE_DL_LIBS})
210210

211-
if(NOT LLVMSPIRVLib IN_LIST LLVM_AVAILABLE_LIBS)
211+
if(NOT LLVMSPIRVLib IN_LIST LLVM_AVAILABLE_LIBS OR (USE_PREBUILT_LLVM AND LLVM_LINK_LLVM_DYLIB))
212212
# SPIRV-LLVM-Translator is not included into LLVM as a component.
213213
# So, we need to list it here explicitly as an external library
214214
list(APPEND OPENCL_CLANG_LINK_LIBS LLVMSPIRVLib)

0 commit comments

Comments
 (0)