Skip to content

Commit 0b9b982

Browse files
committed
Try to force using msys2 clangarm64 for Windows on ARM
1 parent d2b3303 commit 0b9b982

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/buildwheel.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
msystem: clangarm64
3737
if: ${{ matrix.os == 'windows-11-arm' }}
3838

39+
- run: |
40+
"C:\\msys64\\clangarm64\\bin" >> $env:GITHUB_PATH
41+
"C:\\msys64\\usr\\bin" >> $env:GITHUB_PATH
42+
"MSYSTEM=CLANGARM64" >> $env:GITHUB_ENV
43+
"CC=clang" >> $env:GITHUB_ENV
44+
"CXX=clang++" >> $env:GITHUB_ENV
45+
"AR=llvm-ar" >> $env:GITHUB_ENV
46+
"RANLIB=llvm-ranlib" >> $env:GITHUB_ENV
47+
"STRIP=llvm-strip" >> $env:GITHUB_ENV
48+
if: ${{ matrix.os == 'windows-11-arm' }}
49+
3950
# Install pkgconfig on Windows from choco rather than from msys and
4051
# avoid using the Strawberry one.
4152
- run: choco install -y --stoponfirstfailure --checksum 6004DF17818F5A6DBF19CB335CC92702 pkgconfiglite

bin/cibw_before_build_windows_arm64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ includedir=$INCLUDE_DIR
6969
Name: Python
7070
Description: CPython import library for MinGW wheel builds
7171
Version: $PKG_VERSION
72-
Libs: -L\${libdir} -l$dll_stem
72+
Libs: $LIB_DIR/lib$dll_stem.dll.a
7373
Cflags: -DMS_WIN64 -I\${includedir}
7474
EOF
7575

0 commit comments

Comments
 (0)