Skip to content

Commit 158bffe

Browse files
committed
fix(windows): force _WIN32 definition to be sure guard on PyTorch are not bypass
1 parent 1d12b13 commit 158bffe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build2cmake/src/templates/windows.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Ensure _WIN32 is always defined on Windows
2+
add_compile_definitions(_WIN32)
3+
14
# Generate a standardized build variant name following the pattern:
25
# torch<VERSION>-<ABI>-<COMPUTE>-windows
36
#

0 commit comments

Comments
 (0)