File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,36 @@ add_custom_target(rtc-prepare-resources
4545 ${SYCL_JIT_RESOURCE_FILES}
4646)
4747
48+ set (SYCL_JIT_RUNTIME_RESOURCE_DEPS)
49+ # set(SYCL_JIT_RUNTIME_RESOURCE_DEPS runtimes-configure)
50+ set (SYCL_JIT_RUNTIME_RESOURCE_INSTALL_COMPONENTS)
51+
52+ if ("libcxx" IN_LIST LLVM_ENABLE_RUNTIMES)
53+ list (APPEND SYCL_JIT_RUNTIME_RESOURCE_INSTALL_COMPONENTS cxx-headers)
54+
55+ # Without it: "<...>/"build/include/c++/v1/libcxx.imp": No such file
56+ list (APPEND SYCL_JIT_RUNTIME_RESOURCE_DEPS cxx)
57+ endif ()
58+
59+ foreach (component IN LISTS SYCL_JIT_RUNTIME_RESOURCE_INSTALL_COMPONENTS)
60+ list (APPEND SYCL_JIT_PREPARE_RUNTIME_RESOURCE_COMMANDS
61+ COMMAND ${CMAKE_COMMAND} --install ${CMAKE_BINARY_DIR} /runtimes/runtimes-bins --prefix ${CMAKE_CURRENT_BINARY_DIR} /rtc-resources-install --component "${component} "
62+ )
63+ endforeach ()
64+
65+ add_custom_target (rtc-prepare-runtime-resources
66+ DEPENDS ${SYCL_JIT_RUNTIME_RESOURCE_DEPS}
67+ ${SYCL_JIT_PREPARE_RUNTIME_RESOURCE_COMMANDS}
68+ )
69+
4870add_custom_command (
4971 OUTPUT ${SYCL_JIT_RESOURCE_CPP}
5072 COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR} /utils/generate.py --toolchain-dir ${SYCL_JIT_RESOURCE_INSTALL_DIR} --output ${SYCL_JIT_RESOURCE_CPP} --prefix ${SYCL_JIT_VIRTUAL_TOOLCHAIN_ROOT}
5173 DEPENDS
5274 rtc-prepare-resources
5375 ${SYCL_JIT_RESOURCE_DEPS}
5476 ${SYCL_JIT_RESOURCE_FILES}
77+ rtc-prepare-runtime-resources
5578 ${CMAKE_CURRENT_SOURCE_DIR} /utils/generate.py
5679)
5780
You can’t perform that action at this time.
0 commit comments