Skip to content

pyo3-build-config: fix build for windows gnu targets#1759

Closed
davidhewitt wants to merge 5 commits intoPyO3:mainfrom
davidhewitt:windows-gnu
Closed

pyo3-build-config: fix build for windows gnu targets#1759
davidhewitt wants to merge 5 commits intoPyO3:mainfrom
davidhewitt:windows-gnu

Conversation

@davidhewitt
Copy link
Member

This PR tweaks the logic from #1423 to use mingw lib names only if sysconfig.get_platform() returns "mingw".

It's built on top of #1758, because I did a lot of changes in that PR and I didn't want to have to rebase 😅. Only the last commit is relevant for this PR.

Fixes PyO3/setuptools-rust#147

cc @Quogu - I verified this appears to work locally. If you have the chance to check this patch with your use case in the next couple days before I put PyO3 0.14.2 live, it'd be great to have confirmation this resolves your issue.

@davidhewitt
Copy link
Member Author

Cherry-picked this onto #1758 to write more test coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't build using x86_64-pc-windows-gcc

3 participants