File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -215,13 +215,12 @@ set(ADDITIONAL_LIBS )
215215
216216if (USE_PREBUILT_LLVM AND NOT LLVMSPIRV_INCLUDED_IN_LLVM)
217217 # SPIRV-LLVM-Translator is not included into LLVM as a component.
218- # So, we need to list it there explicitly as a library
219- set (ADDITIONAL_LIBS ${ADDITIONAL_LIBS} LLVMSPIRVLib)
220- elseif (NOT LLVM_LINK_LLVM_DYLIB)
221- # SPIRV-LLVM-Translator is included into LLVM as a component, but
222- # LLVM components is not linked together into an umbrella library.
223- # So, we need to list SPIRV-LLVM-Translator there explicitly as a component
224- set (LLVM_COMPONENTS ${LLVM_LIBS} SPIRVLib)
218+ # So, we need to list it here explicitly as an external library
219+ set (ADDITIONAL_LIBS LLVMSPIRVLib)
220+ else ()
221+ # SPIRV-LLVM-Translator is built as part of LLVM build.
222+ # We should add it to the list of LLVM components
223+ list (APPEND LLVM_COMPONENTS SPIRVLib)
225224endif (USE_PREBUILT_LLVM AND NOT LLVMSPIRV_INCLUDED_IN_LLVM)
226225
227226add_subdirectory (cl_headers)
You can’t perform that action at this time.
0 commit comments