File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change 99set (SYCL_JIT_VIRTUAL_TOOLCHAIN_ROOT "/sycl-jit-toolchain/" )
1010endif ()
1111
12+ # TODO: libdevice
13+ set (SYCL_JIT_RESOURCE_DEPS sycl-headers clang ${CMAKE_CURRENT_SOURCE_DIR} /utils/generate.py)
14+
15+ if ("libclc" IN_LIST LLVM_ENABLE_PROJECTS)
16+ # Somehow just "libclc" doesn't build "remangled-*" (and maybe whatever else).
17+ list (APPEND SYCL_JIT_RESOURCE_DEPS ${CMAKE_BINARY_DIR} /tools/libclc/all )
18+ endif ()
19+
1220add_custom_command (
1321 OUTPUT ${SYCL_JIT_RESOURCE_CPP}
1422 COMMAND ${Python3_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR} /utils/generate.py --toolchain-dir ${CMAKE_BINARY_DIR} --output ${SYCL_JIT_RESOURCE_CPP} --prefix ${SYCL_JIT_VIRTUAL_TOOLCHAIN_ROOT}
1523 DEPENDS
16- sycl-headers # include/sycl
17- libclc # lib/clc
18- clang # lib/clang
19- # TODO: libdevice
20- ${CMAKE_CURRENT_SOURCE_DIR} /utils/generate.py
24+ ${SYCL_JIT_RESOURCE_DEPS}
2125)
2226
2327# We use C23/C++26's `#embed` to implement this resource creation, and "current"
You can’t perform that action at this time.
0 commit comments