-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the use of MSVC in an MSYS environment #2087
Conversation
I confirm that it now work's on my side Great ! |
Shouldn't |
@wjakob I agree, I made the condition like this to allow more compilers than MSVC only. |
I can confirm, that this does work for me with MSYS2+MinGW. I think this is good as you wrote it, this way it does only change behavior for Msys+MinGW. Did someone test MinGW without MSYS? |
I did and it works. Actually I made PR #2048 because I'm using MinGW alone. Now every configuration should be OK. |
Hi ! Any idea when this PR will be merged on master ? |
Merged! |
Thanks for tracking this down :) |
Thank you ! |
After fix pybind/pybind11#2087, windows wheel should be able to compile again Signed-off-by: julian <julian.burellaperez@heig-vd.ch>
Since MSVC can also be used in an MSYS environment (for example the one provided with Git for Windows), we also need to check if the MinGW compiler is used alongside the
MSYSTEM
environment variable. This expand the MSYS check made in PR #2053@MonkeyBreaker Could you check that this fixes your issue?
@kanonet Could you check as well that pybind11 + MSYS still work in your cases?
Fix #2079