File tree Expand file tree Collapse file tree 3 files changed +23
-17
lines changed Expand file tree Collapse file tree 3 files changed +23
-17
lines changed Original file line number Diff line number Diff line change @@ -314,11 +314,14 @@ add_custom_target( sycl-toolchain
314
314
DEPENDS sycl-runtime-libraries
315
315
sycl-compiler
316
316
sycl-ls
317
- win_proxy_loader
318
317
${XPTIFW_LIBS}
319
318
COMMENT "Building SYCL compiler toolchain..."
320
319
)
321
320
321
+ if (WIN32 )
322
+ add_dependencies (sycl-toolchain win_proxy_loader )
323
+ endif ()
324
+
322
325
# Enable new IN_LIST operator.
323
326
cmake_policy (SET CMP0057 NEW )
324
327
@@ -351,7 +354,9 @@ add_subdirectory( plugins )
351
354
352
355
add_subdirectory (tools )
353
356
354
- add_subdirectory (win_proxy_loader )
357
+ if (WIN32 )
358
+ add_subdirectory (win_proxy_loader )
359
+ endif ()
355
360
356
361
if (SYCL_INCLUDE_TESTS )
357
362
if (NOT LLVM_INCLUDE_TESTS )
@@ -395,11 +400,14 @@ set( SYCL_TOOLCHAIN_DEPLOY_COMPONENTS
395
400
sycl
396
401
libsycldevice
397
402
level-zero-sycl-dev
398
- win_proxy_loader
399
403
${XPTIFW_LIBS}
400
404
${SYCL_TOOLCHAIN_DEPS}
401
405
)
402
406
407
+ if (WIN32 )
408
+ list (APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS win_proxy_loader )
409
+ endif ()
410
+
403
411
if (TARGET sycl-prof )
404
412
list (APPEND SYCL_TOOLCHAIN_DEPLOY_COMPONENTS sycl-prof )
405
413
endif ()
Original file line number Diff line number Diff line change @@ -71,11 +71,13 @@ function(add_sycl_rt_library LIB_NAME LIB_OBJ_NAME)
71
71
endif ()
72
72
73
73
# win_proxy_loader
74
- include_directories (${LLVM_EXTERNAL_SYCL_SOURCE_DIR} /win_proxy_loader )
75
- if (WIN_DUPE )
76
- target_link_libraries (${LIB_NAME} PUBLIC win_proxy_loaderd )
77
- else ()
78
- target_link_libraries (${LIB_NAME} PUBLIC win_proxy_loader )
74
+ if (WIN32 )
75
+ include_directories (${LLVM_EXTERNAL_SYCL_SOURCE_DIR} /win_proxy_loader )
76
+ if (WIN_DUPE )
77
+ target_link_libraries (${LIB_NAME} PUBLIC win_proxy_loaderd )
78
+ else ()
79
+ target_link_libraries (${LIB_NAME} PUBLIC win_proxy_loader )
80
+ endif ()
79
81
endif ()
80
82
81
83
target_compile_definitions (${LIB_OBJ_NAME} PRIVATE __SYCL_INTERNAL_API )
Original file line number Diff line number Diff line change 1
1
project (win_proxy_loader )
2
2
add_library (win_proxy_loader SHARED win_proxy_loader.cpp )
3
- if (WIN32 )
4
- install (TARGETS win_proxy_loader
5
- RUNTIME DESTINATION "bin" COMPONENT win_proxy_loader
6
- )
7
- endif ()
3
+ install (TARGETS win_proxy_loader
4
+ RUNTIME DESTINATION "bin" COMPONENT win_proxy_loader
5
+ )
8
6
9
7
if (MSVC )
10
8
# MSVC provides two incompatible build variants for its CRT: release and debug
@@ -48,10 +46,8 @@ if (MSVC)
48
46
target_compile_options (win_proxy_loader PRIVATE ${WINUNLOAD_CXX_FLAGS_RELEASE} )
49
47
target_link_libraries (win_proxy_loaderd PRIVATE shlwapi )
50
48
target_link_libraries (win_proxy_loader PRIVATE shlwapi )
51
- if (WIN32 )
52
- install (TARGETS win_proxy_loaderd
53
- RUNTIME DESTINATION "bin" COMPONENT win_proxy_loader )
54
- endif ()
49
+ install (TARGETS win_proxy_loaderd
50
+ RUNTIME DESTINATION "bin" COMPONENT win_proxy_loader )
55
51
endif ()
56
52
57
53
You can’t perform that action at this time.
0 commit comments