premake-core icon indicating copy to clipboard operation
premake-core copied to clipboard

arm64 support on Windows

Open ktraunmueller opened this issue 7 months ago • 5 comments

It looks like currently only x64 and x86 architectures are supported on Windows.

With ARM Windows gaining more widespread adoption (I am actually running Windows 11 ARM in a VM on a MacBook Pro), support for arm64 architecture would be great.

ktraunmueller avatar May 18 '25 11:05 ktraunmueller

Definitely feels like a reasonable feature to add. Are you specifically requesting the ability to build Premake binaries for ARM/ARM64 for Windows, or are you looking for support in the exporters/toolsets (or both).

nickclark2016 avatar May 23 '25 15:05 nickclark2016

The former - I wanted to try a library whose build system was based on Premake, and found that there was no premake5.exe for ARM Windows, so I couldn't use that library.

ktraunmueller avatar May 24 '25 10:05 ktraunmueller

There is a runner for windows-arm now to add to the CI, see standard-github-hosted-runners-for-public-repositories

Jarod42 avatar May 28 '25 13:05 Jarod42

Greetings,

I am reaching out on behalf of the conan-io organization. We are working to ensure first-class support for Premake within Conan. However, we have encountered an issue when using the vsXXXX actions: the ARM and ARM64 architectures are not supported.

Currently, when we specify arm64, the generated solution includes the following configurations:

    Debug|Win32 = Debug|Win32
    Release|Win32 = Release|Win32

Instead, it should correctly include:

    Debug|ARM64 = Debug|ARM64
    Release|ARM64 = Release|ARM64

Could you please look into this issue?

Thank you in advance for your assistance!

perseoGI avatar Jul 15 '25 09:07 perseoGI

I tried building Premake on Windows on Arm via the github runner image tagged windows-11-arm but for now, it doesn't work. The bootstrap build needs adjusting, it starts up the dev command prompt as x64 and shifts to ARM64 midway through even though I have provided PLATFORM=ARM64 as the environment variable. But also, Microsoft's images have a corrupt VS install that gives this error:

NMAKE : fatal error U1077: 'devenv .\build\bootstrap\Premake5.sln /Upgrade' : return code '0x1'
Stop.
Invalid license data. Repair Visual Studio from the Control Panel.The system cannot find the path specified.

theComputeKid avatar Jul 18 '25 21:07 theComputeKid