Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Add opencl-aot to sycl-toolchain target #1504

Merged
merged 1 commit into from
Apr 13, 2020
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