Skip to content

Commit ffab241

Browse files
committed
chore: Disable BMI2 when building on Windows
See ggml-org/whisper.cpp#3543
1 parent 25811c2 commit ffab241

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/wheels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
CIBW_ARCHS: auto
5757
# for windows setup.py repairwheel step should solve it
5858
CIBW_SKIP: pp* cp38-*
59-
CIBW_ENVIRONMENT: ${{ contains(matrix.os, 'arm') && 'CMAKE_ARGS="-DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a"' || '' }}
59+
# Whisper.cpp tries to use BMI2 on 32 bit Windows, so disable BMI2 when building on Windows to avoid that bug. See https://github.com/ggml-org/whisper.cpp/pull/3543
60+
CIBW_ENVIRONMENT: CMAKE_ARGS="${{ contains(matrix.os, 'arm') && '-DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=armv8-a' || ''}} ${{ contains(matrix.os, 'windows') && '-DGGML_BMI2=OFF' || '' }}"
6061

6162
- name: Verify clean directory
6263
run: git diff --exit-code

0 commit comments

Comments
 (0)