Repository navigation
Conversation
This patched version runs the x86_64 build of haxe through emulation on arm64 windows.
tobil4sk
force-pushed
the
feature/ci-windows-arm64
branch
from
October 13, 2026 07:54
6dc6821 to
de19491
Compare
Member
Author
|
The reason for the out of memory issue during builds is that msvc is being emulated using 32-bit x86: Line 839 in e638733 This was probably added when older versions of Windows arm64 did not yet support x86_64 emulation, only x86_32. Ideally we should:
|
Contributor
Let's try the arm64 one then. |
Previously we were forcing a host arch of x86, which caused the compiler to run out of memory when processing precompiled headers. Hopefully, VsDevCmd can pick an appropriate host architecture automatically for us (arm64 when available [0], x64/x86 for cross-compilation or when visual studio is old and doesn't support a native arm64 build). [0] https://devblogs.microsoft.com/visualstudio/arm64-visual-studio-is-officially-here/
HXCPP_MSVC is set when using HXCPP_MSVC_VER, which uses legacy VSxxxCOMNTOOLS environment variables that no longer exist since VS2017 [0]. VS2017 was also the first version of VS to add arm64 as a target [1], so this older method is incompatible anyway. Aside from these issues, this also never worked because it would check for "..._arm64.bat" but then call "..._amd64.bat", so it was never correctly producing arm64 binaries. [0] https://developercommunity.visualstudio.com/t/missing-vs150comntools/35325 [1] https://pete.akeo.ie/2017/05/compiling-desktop-arm-applications-with.html
Member
Author
|
It looks like we should be able to defer to VsDevCmd to decide the correct host, which is simpler on our end and will hopefully do the correct thing for those edge cases with older VS installs etc. |
dimensionscape
pushed a commit
to openfl/libhxcpp
that referenced
this pull request
Oct 15, 2026
dimensionscape
pushed a commit
to openfl/libhxcpp
that referenced
this pull request
Oct 15, 2026
dimensionscape
pushed a commit
to openfl/libhxcpp
that referenced
this pull request
Oct 15, 2026
dimensionscape
pushed a commit
to openfl/libhxcpp
that referenced
this pull request
Oct 15, 2026
dimensionscape
pushed a commit
to openfl/libhxcpp
that referenced
this pull request
Oct 15, 2026
dimensionscape
pushed a commit
to openfl/libhxcpp
that referenced
this pull request
Oct 15, 2026
dimensionscape
pushed a commit
to openfl/libhxcpp
that referenced
this pull request
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This requires a patched version of setup-haxe: krdlab/setup-haxe#138
Related to #1386