File tree Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Expand file tree Collapse file tree 4 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ endif()
51
51
set (CLANG_VERSION "${CLANG_VERSION_MAJOR} .${CLANG_VERSION_MINOR} .${CLANG_VERSION_PATCHLEVEL} " )
52
52
53
53
set (LLVM_INST_INC_DIRECTORY "lib${LLVM_LIBDIR_SUFFIX} /clang/${CLANG_VERSION} /include" )
54
+ set (LLVM_PYTHON_DIRECTORY "lib${LLVM_LIBDIR_SUFFIX} /clang/${CLANG_VERSION} /python" )
54
55
set (dst_dir ${LLVM_LIBRARY_OUTPUT_INTDIR} /clang/${CLANG_VERSION}/include )
55
56
56
57
# Find OpenCL headers and libraries installed in the system and use them to
@@ -150,6 +151,12 @@ COMMENT "Copying SYCL headers ...")
150
151
# Configure SYCL headers
151
152
install (DIRECTORY "${sycl_inc_dir} /." DESTINATION "${LLVM_INST_INC_DIRECTORY} " COMPONENT sycl-headers )
152
153
154
+ # Auxilliary extras for SYCL headers
155
+ add_custom_target (sycl-headers-extras ALL
156
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR} /xmethods ${dst_dir}
157
+ COMMENT "Copying SYCL header xmethod scripts ..." )
158
+ install (DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR} /xmethods" DESTINATION ${LLVM_PYTHON_DIRECTORY} COMPONENT sycl-headers-extras )
159
+
153
160
set (SYCL_RT_LIBS sycl )
154
161
if (MSVC )
155
162
list (APPEND SYCL_RT_LIBS sycld )
@@ -244,6 +251,7 @@ set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
244
251
clang-resource-headers
245
252
opencl-headers
246
253
sycl-headers
254
+ sycl-headers-extras
247
255
sycl
248
256
pi_opencl
249
257
)
Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx -fsycl-device-only -c -fno-color-diagnostics -Xclang -ast-dump %s | FileCheck %s
2
+ // UNSUPPORTED: windows
2
3
#include < CL/sycl/accessor.hpp>
3
4
4
5
typedef cl::sycl::accessor<int , 1 , cl::sycl::access::mode::read> dummy;
Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx -c -fno-color-diagnostics -Xclang -ast-dump %s | FileCheck %s
2
+ // UNSUPPORTED: windows
2
3
#include < CL/sycl/accessor.hpp>
3
4
4
5
typedef cl::sycl::accessor<int , 1 , cl::sycl::access::mode::read> dummy;
You can’t perform that action at this time.
0 commit comments