Skip to content

Commit f976569

Browse files
WIP libc
1 parent e0beb50 commit f976569

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

sycl-jit/jit-compiler/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ foreach(component IN LISTS SYCL_JIT_RUNTIME_RESOURCE_INSTALL_COMPONENTS)
6262
)
6363
endforeach()
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+
6573
add_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

0 commit comments

Comments
 (0)