Skip to content

Commit d4a1879

Browse files
author
seydx
committed
Add clang-cl compiler support for ARM64 cross-compilation in build script
1 parent 409805e commit d4a1879

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

build-whisper.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,13 @@ WHISPER_CMAKE_ARGS=(
4646

4747
# For ARM64 cross-compilation, tell CMake we're cross-compiling
4848
# This triggers the automatic host compiler detection for vulkan-shaders-gen
49+
# Also use clang-cl for ARM64 as MSVC is not supported for ARM CPU backend
4950
if [ "$BUILD_ARCH" == "arm64" ]; then
5051
WHISPER_CMAKE_ARGS+=(
5152
-DCMAKE_SYSTEM_NAME=Windows
5253
-DCMAKE_SYSTEM_PROCESSOR=ARM64
54+
-DCMAKE_C_COMPILER=clang-cl
55+
-DCMAKE_CXX_COMPILER=clang-cl
5356
)
5457
fi
5558

0 commit comments

Comments
 (0)