Skip to content

Commit 8c398e3

Browse files
committed
update code.
1 parent 0b084c6 commit 8c398e3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BuildOnWindows.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ if(BUILD_SEPARATE_OPS)
4343
${sycl_lib}
4444
SHARED
4545
SYCL_SOURCES ${sycl_src})
46+
target_compile_definitions(${sycl_lib} PRIVATE TORCH_XPU_BUILD_MAIN_LIB)
4647
target_link_libraries(torch_xpu_ops PUBLIC ${sycl_lib})
4748
list(APPEND TORCH_XPU_OPS_LIBRARIES ${sycl_lib})
4849

0 commit comments

Comments
 (0)