File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 2121 - os : windows
2222 runner : windows-2022
2323 - os : macos
24- runner : macos-12
24+ runner : macos-latest
2525 - os : ubuntu-20.04
2626 runner : ubuntu-20.04
2727 - os : ubuntu-22.04
@@ -172,6 +172,8 @@ jobs:
172172 run : |
173173 if ($IsWindows) {
174174 Enter-VsDevShell x64
175+ $CMAKE_MT = (Get-Command -Type Application mt).Source -Replace '\\', '/'
176+ echo "CMAKE_MT=$CMAKE_MT" >> $Env:GITHUB_ENV
175177 }
176178
177179 cmake -G Ninja -S halide -B halide-host `
@@ -213,6 +215,10 @@ jobs:
213215 $CMakeArgs += @("-DTARGET_WEBASSEMBLY=ON")
214216 $CMakeArgs += @("-Wno-dev")
215217
218+ if ($IsWindows) {
219+ $CMakeArgs += @("-DCMAKE_MT=`"${Env:CMAKE_MT}`"")
220+ }
221+
216222 if ('${{matrix.os}}' -eq 'macos') {
217223 $AppleArch = @{'x86_64'='x86_64';'aarch64'='arm64'}['${{matrix.arch}}']
218224 $CMakeArgs += @("-DCMAKE_OSX_ARCHITECTURES=`"$AppleArch`"")
You can’t perform that action at this time.
0 commit comments