Skip to content

Commit 1c8362c

Browse files
committed
another try
1 parent ac467fa commit 1c8362c

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/wheels.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,20 @@ jobs:
3535
CIBW_BUILD: ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
3636
CIBW_BUILD_FRONTEND: 'pip'
3737
CIBW_PLATFORM: 'auto'
38-
CIBW_ENVIRONMENT_WINDOWS: 'CC=cl CXX=cl'
39-
# Add any necessary build environment variables here if needed
40-
# e.g. CIBW_BEFORE_BUILD_WINDOWS: bash scripts/cibw_before_build_windows.sh
38+
CIBW_BEFORE_BUILD_WINDOWS: |
39+
echo "Attempting to set up MSVC ARM64 environment..."
40+
rem Assuming Visual Studio 2022 Enterprise edition. Adjust path if different (e.g., Community, BuildTools).
41+
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" arm64
42+
echo "Setting CC, CXX, CL, and _CL_ environment variables for Meson"
43+
set CC=cl
44+
set CXX=cl
45+
rem /Brepro helps with build reproducibility
46+
set CL=/Brepro
47+
set _CL_=/Brepro
48+
echo "Environment setup complete. PATH is: %PATH%"
49+
echo "CC is: %CC%, CXX is: %CXX%"
50+
echo "Verifying cl.exe is in PATH:"
51+
where cl
4152
4253
- name: Set up Python for validation
4354
uses: mamba-org/setup-micromamba@v2

0 commit comments

Comments
 (0)