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 )
215
215
216
216
if (USE_PREBUILT_LLVM AND NOT LLVMSPIRV_INCLUDED_IN_LLVM )
217
217
# 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 )
225
224
endif (USE_PREBUILT_LLVM AND NOT LLVMSPIRV_INCLUDED_IN_LLVM )
226
225
227
226
add_subdirectory (cl_headers )
You can’t perform that action at this time.
0 commit comments