Skip to content

Commit 52101af

Browse files
[SYCL][libclc] Fix remangled libclc files not being correctly installed (intel#4372)
The remangled libclc bitcode files were not being moved into the install directory. These changes ensure that the libclc variants are correctly configured to be copied into the install directory, if remangled variants are enabled. Signed-off-by: Steffen Larsen <[email protected]>
1 parent 28f95bb commit 52101af

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,4 +395,16 @@ install(DIRECTORY ${LIBCLC_LIBRARY_OUTPUT_INTDIR}
395395
COMPONENT clc-builtins
396396
FILES_MATCHING PATTERN "clc-*")
397397

398+
if( LIBCLC_GENERATE_REMANGLED_VARIANTS )
399+
install(DIRECTORY ${LIBCLC_LIBRARY_OUTPUT_INTDIR}
400+
DESTINATION lib${LLVM_LIBDIR_SUFFIX}
401+
COMPONENT libspirv-builtins
402+
FILES_MATCHING PATTERN "remangled-*libspirv-*")
403+
404+
install(DIRECTORY ${LIBCLC_LIBRARY_OUTPUT_INTDIR}
405+
DESTINATION lib${LLVM_LIBDIR_SUFFIX}
406+
COMPONENT clc-builtins
407+
FILES_MATCHING PATTERN "remangled-*clc-*")
408+
endif()
409+
398410
add_subdirectory(test)

0 commit comments

Comments
 (0)