Skip to content

Commit a67a1b9

Browse files
[SYCL-RTC] Fix MacOS post-commit build failure
Failed after #19924.
1 parent 8e59722 commit a67a1b9

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sycl-jit/jit-compiler/CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,19 @@ else()
99
set(SYCL_JIT_VIRTUAL_TOOLCHAIN_ROOT "/sycl-jit-toolchain/")
1010
endif()
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+
1220
add_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"

0 commit comments

Comments
 (0)