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

Enable building win/arm64 package using visual studio #1130

Merged
merged 7 commits into from
Nov 17, 2021

Conversation

niyas-sait
Copy link
Contributor

This patch enables building packages for windows on arm64 using visual studio.

As ARM64 build tools are not available with VS 2015 and v140 toolchain the solution has been updated to target v142.

@jedisct1
Copy link
Owner

jedisct1 commented Nov 16, 2021

Hi!

And thanks for help with this!

Is there a way to cross-compile to arm64 using the Community version of Visual Studio?

Even with MSVC 2022, my tentative attempts miserably failed, but you know the topic way better than I do.

Is there a way to test this?

The solution in the root folder is mostly historical, and only used for AppVeyor and running the test suite.

Actual packages are made with the scripts from builds/msvc/build and solutions from builds/msvc/vs*

These are all automatically generated from templates by the regen-msvc/regen-msvc.py script.

@niyas-sait
Copy link
Contributor Author

Hi!

And thanks for help with this!

Is there a way to cross-compile to arm64 using the Community version of Visual Studio?

Even with MSVC 2022, my tentative attempts miserably failed, but you know the topic way better than I do.

Is there a way to test this?

The solution in the root folder is mostly historical, and only used for AppVeyor and running the test suite.

Actual packages are made with the scripts from builds/msvc/build and solutions from builds/msvc/vs*

These are all automatically generated from templates by the regen-msvc/regen-msvc.py script.

Thanks, @jedisct1 for the quick response.

Yes, I think it is available in the community version also. You will have to add the following components during installation or launch visual studio installer and modify components

  • MSVC v142 - VS 2019 C++ ARM64 build tools (latest)
  • C++ ATL for latest v142 build tools (ARM64)

Unfortunately, there is no public VM available for win/arm64 yet in the cloud. Hopefully very soon Azure and others would bring up instances we could use for testing.

Thanks for explaining the build flow. I will update the auto-generation scripts as well.

@jedisct1
Copy link
Owner

Thank you so much, Niyas!

@jedisct1 jedisct1 merged commit 13144d1 into jedisct1:master Nov 17, 2021
@niyas-sait
Copy link
Contributor Author

Thanks @jedisct1 for review and for accepting the patch

Repository owner locked and limited conversation to collaborators Feb 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants