File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change 35
35
CIBW_BUILD : ${{ matrix.python[0] }}-${{ matrix.buildplat[1] }}
36
36
CIBW_BUILD_FRONTEND : ' pip'
37
37
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
41
52
42
53
- name : Set up Python for validation
43
54
uses : mamba-org/setup-micromamba@v2
You can’t perform that action at this time.
0 commit comments