Skip to content
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

Add msvc to the ci #1632

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Add msvc to the ci #1632

wants to merge 1 commit into from

Conversation

hhugo
Copy link
Member

@hhugo hhugo commented Jun 27, 2024

No description provided.

@hhugo
Copy link
Member Author

hhugo commented Jun 27, 2024

@dra27, what would be the way to install gmp on msvc ?

@hhugo hhugo marked this pull request as draft June 27, 2024 10:10
@dra27
Copy link
Contributor

dra27 commented Jul 1, 2024

I think that this has never been possible with opam-repository-mingw (but this is something I haven't actually checked thoroughly). In theory, the .a files created by gcc are usable from an MSVC program (.a and .lib are an identical format, and both the .o and .obj files are COFF objects).

I've been musing whether we can do a similar trick with vcpkg (which packages gmp) as @RyanGibb and I have been working on with nixpkgs, where we might add a second repository for enabling vcpkg support. However, I'm just at the "musing on it" stage at the moment. I know that DkML has integration with vcpkg already, but I haven't yet looked at the details of it.

Ages ago (2016), I started https://github.com/dra27/windows-native where the intention was to be able to build some of these depexts from sources in the switch - I had some work in progress on adding gmp (and mpir, I think) to this idea - but again, it's not something that I'm actively working on at the moment.

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.

None yet

2 participants