ilammy / msvc-dev-cmd

GitHub Action to setup Developer Command Prompt for Microsoft Visual C++
MIT License
329 stars 44 forks source link

How can you compile for Windows ARM64EC architecture? #79

Open HerrNamenlos123 opened 3 months ago

HerrNamenlos123 commented 3 months ago

According to https://devblogs.microsoft.com/cppblog/arm64ec-support-in-visual-studio/, you can build for ARM64EC architecture, which seems to have many benefits over normal ARM64 architecture.

Is there a way to use this GH action to build for ARM64EC instead of normal ARM64? I did not see anything documented...

pzhlkj6612 commented 3 months ago

Hi!

In GitHub-hosted runners, the "VC.Tools.ARM64EC" is installed in both Windows 2019 and 2022, so firstly you may need to try preparing the environment manually by writing CMD commands. If everything works well, you could consider using this action instead. This action internally calls "vcvarsall.bat" to prepare the environment for VC++ programming.