Open jiawlu opened 1 month ago
Hmm, I would have thought that would work. You don't need CIBW_ENVIRONMENT_WINDOWS, you can just set the env vars directly. I'm not sure how well gcc works instead of MSVC when you are targeting the normal Windows CPython, it's not been officially supported since something like Python 3.3 from what I remember.
Do you have MinGW installed, though? In our tests (which build with the mingw, etc versions of Python), we have to install it: https://github.com/scikit-build/scikit-build-core/blob/8e892cec8ca87d83f4545e10ac49ef1b53b024af/.github/workflows/ci.yml#L216-L303
I'm using scikit-build-core to build my c++ program on github windows runners. I would like to use gcc instead of microsoft visual studio as the compiler. Below is how I configure compiler settings in my program, but it does not work (see the log, MSVS was used)
Github workflow file
pyproject.toml file