File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 71
71
# Build Arm Zephyr Preset
72
72
cmake --preset ${{ matrix.preset }}
73
73
cmake --build cmake-out -j$(( $(nproc) - 1 ))
74
+
74
75
linux :
75
76
uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
76
77
strategy :
@@ -117,16 +118,9 @@ jobs:
117
118
timeout : 90
118
119
script : |
119
120
set -eux
120
- conda init powershell
121
- powershell -Command "& {
122
- \$ErrorActionPreference = 'Stop'
123
- Set-PSDebug -Trace 1
124
-
125
- conda create --yes --quiet -n et python=3.12
126
- conda activate et
121
+ conda create --yes --quiet -n et python=3.12
122
+ conda activate et
127
123
128
- python install_requirements.py
129
- cmake --preset ${{ matrix.preset }}
130
- \$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
131
- cmake --build cmake-out -j \$numCores
132
- }"
124
+ ./install_requirements.sh
125
+ cmake -G "Visual Studio 17 2022" -T ClangCL --preset ${{ matrix.preset }}
126
+ cmake --build cmake-out -j$(( $(nproc) - 1 ))
Original file line number Diff line number Diff line change @@ -74,6 +74,12 @@ if(NOT CMAKE_BUILD_TYPE)
74
74
endif ()
75
75
announce_configured_options (CMAKE_BUILD_TYPE )
76
76
77
+ if (WIN32 )
78
+ if (NOT "${CMAKE_GENERATOR_TOOLSET} " STREQUAL "" AND NOT CMAKE_GENERATOR_TOOLSET MATCHES "Clang" )
79
+ message (FATAL_ERROR "Windows requires clang. Pass '-T ClangCL' in the cmake build command. Current CMAKE_GENERATOR_TOOLSET: ${CMAKE_GENERATOR_TOOLSET} " )
80
+ endif ()
81
+ endif ()
82
+
77
83
if (NOT PYTHON_EXECUTABLE )
78
84
resolve_python_executable ()
79
85
endif ()
You can’t perform that action at this time.
0 commit comments