Skip to content

Commit 79e8424

Browse files
try forcing MSVC mt.exe
1 parent 08a0be1 commit 79e8424

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/halide-prebuilt.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
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`"")

0 commit comments

Comments
 (0)