Skip to content

Use MSVC to build python-flint's extension modules#378

Merged
oscarbenjamin merged 2 commits intoflintlib:mainfrom
oscarbenjamin:pr_msvc_ext
Mar 22, 2026
Merged

Use MSVC to build python-flint's extension modules#378
oscarbenjamin merged 2 commits intoflintlib:mainfrom
oscarbenjamin:pr_msvc_ext

Conversation

@oscarbenjamin
Copy link
Collaborator

Follows gh-377

With this PR we still build GMP, MPFR and FLINT on Windows using msys2's ucrt toolchain but we use MSVC to build python-flint's extension modules that link with these. This is hoped to make the extension modules more compatible with standard python.org builds of CPython. Also now though hopefully using MSVC for the extension modules will work better for a future PR adding Windows on ARM (improving on gh-360's approach).

@oscarbenjamin
Copy link
Collaborator Author

This is hoped to make the extension modules more compatible with standard python.org builds of CPython.

The previous gh-377 to use ucrt might improve runtime compatibility since it avoids having two different C runtimes loaded. This PR just means that the extension modules are built with a more standard compiler configuration. That does not necessarily improve compatibility but it may mean that we are less likely to run into untested edge cases that require more complicated build workarounds (thinking of Windows on ARM which we don't address here yet).

@oscarbenjamin oscarbenjamin merged commit 2e84fc5 into flintlib:main Mar 22, 2026
81 checks passed
@oscarbenjamin oscarbenjamin deleted the pr_msvc_ext branch March 22, 2026 22:19
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.

1 participant