Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ add_custom_target( sycl-toolchain
COMMENT "Building SYCL compiler toolchain..."
)

# Check if opencl-aot tool is enabled.
list(FIND LLVM_ENABLE_PROJECTS opencl-aot OPENCL_AOT_FOUND)
if(NOT OPENCL_AOT_FOUND EQUAL -1)
add_dependencies(sycl-toolchain opencl-aot)
list(APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS opencl-aot)
endif()

if (SYCL_ENABLE_XPTI_TRACING)
add_dependencies( sycl-toolchain xpti)
if (MSVC)
Expand Down