@@ -51,7 +51,6 @@ 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" )
55
54
set (dst_dir ${LLVM_LIBRARY_OUTPUT_INTDIR} /clang/${CLANG_VERSION}/include )
56
55
57
56
# Find OpenCL headers and libraries installed in the system and use them to
@@ -151,12 +150,6 @@ COMMENT "Copying SYCL headers ...")
151
150
# Configure SYCL headers
152
151
install (DIRECTORY "${sycl_inc_dir} /." DESTINATION "${LLVM_INST_INC_DIRECTORY} " COMPONENT sycl-headers )
153
152
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
-
160
153
set (SYCL_RT_LIBS sycl )
161
154
if (MSVC )
162
155
list (APPEND SYCL_RT_LIBS sycld )
@@ -194,6 +187,11 @@ endfunction(add_common_options)
194
187
# SYCL runtime library
195
188
add_subdirectory ( source )
196
189
190
+ # Auxilliary extras for SYCL headers/library
191
+ if (NOT WIN32 )
192
+ install (FILES "${CMAKE_CURRENT_SOURCE_DIR} /xmethods/$<TARGET_FILE_NAME:sycl>-gdb.py" DESTINATION lib COMPONENT sycl-headers-extras )
193
+ endif ()
194
+
197
195
# SYCL toolchain builds all components: compiler, libraries, headers, etc.
198
196
add_custom_target ( sycl-toolchain
199
197
DEPENDS ${SYCL_RT_LIBS}
0 commit comments