File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,14 @@ foreach(component IN LISTS SYCL_JIT_RUNTIME_RESOURCE_INSTALL_COMPONENTS)
6262 )
6363endforeach ()
6464
65+ if ("libc" IN_LIST LLVM_ENABLE_RUNTIMES)
66+ list (APPEND SYCL_JIT_RUNTIME_RESOURCE_DEPS libc)
67+ list (APPEND SYCL_JIT_PREPARE_RUNTIME_RESOURCE_COMMANDS
68+ # COMMAND ${CMAKE_COMMAND} --build ${CMAKE_BINARY_DIR}/runtimes/runtimes-bins --target libc
69+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_BINARY_DIR} /runtimes/runtimes-bins/libc/include ${SYCL_JIT_RESOURCE_INSTALL_DIR}
70+ )
71+ endif ()
72+
6573add_custom_target (rtc-prepare-runtime-resources
6674 DEPENDS ${SYCL_JIT_RUNTIME_RESOURCE_DEPS}
6775 ${SYCL_JIT_PREPARE_RUNTIME_RESOURCE_COMMANDS}
@@ -75,6 +83,7 @@ add_custom_command(
7583 ${SYCL_JIT_RESOURCE_DEPS}
7684 ${SYCL_JIT_RESOURCE_FILES}
7785 rtc-prepare-runtime-resources
86+ ${SYCL_JIT_RUNTIME_RESOURCE_DEPS}
7887 ${CMAKE_CURRENT_SOURCE_DIR} /utils/generate.py
7988)
8089
@@ -117,6 +126,7 @@ add_custom_command(
117126 ${SYCL_JIT_RESOURCE_CPP}
118127 ${SYCL_JIT_RESOURCE_DEPS}
119128 ${SYCL_JIT_RESOURCE_FILES}
129+ ${SYCL_JIT_RUNTIME_RESOURCE_DEPS}
120130 ${CMAKE_CURRENT_SOURCE_DIR} /include /Resource .h
121131)
122132
You can’t perform that action at this time.
0 commit comments