Skip to content

Changes to support ARM64 including cross-compilation on linux#228

Merged
iangrunert merged 2 commits intomainfrom
ig/build-win-arm64-on-linux
Apr 10, 2026
Merged

Changes to support ARM64 including cross-compilation on linux#228
iangrunert merged 2 commits intomainfrom
ig/build-win-arm64-on-linux

Conversation

@iangrunert
Copy link
Copy Markdown
Contributor

With these changes you can build the Windows port from Mac hardware using the webkit-container-sdk images.

I opted to consolidate ICU patches as part of this, instead of patching patches.

This drops the wine requirement for cross compilation - instead we build the ICU package tools for the host, and use those. This was necessary to build via Linux Docker containers on Mac - wine doesn't work in that environment unfortunately. This meant we could drop the CMAKE_CROSSCOMPILING_EMULATOR changes. No wine requirement makes the Linux cross compile much simpler.

The libwebp port is the same as the upstream plus a single patch 0010-fix-clang-cl-simd.patch.

The zlib-ng port is necessary for a similar simd patch.

iangrunert and others added 2 commits April 5, 2026 10:53
…mpilation

Add libwebp 1.6.0 and zlib-ng 2.3.3 ports needed for Windows ARM64 builds.
Update ICU portfile and patches for cross-compiling MSVC from Linux.
Add arm64-windows-webkit triplet.

Consolidate the ICU patch files to one for cross-compilation, and one for
pkgdata.cpp. Strip now unused CMAKE_CROSSCOMPILING_EMULATOR changes - we're
no longer using wine, instead we build the local ICU tools and use those.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@iangrunert iangrunert self-assigned this Apr 5, 2026
@iangrunert iangrunert requested a review from foopoiuyt April 10, 2026 16:47
Copy link
Copy Markdown
Contributor

@foopoiuyt foopoiuyt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
I'm assuming the Linux build of the ICU host tools isn't too expensive such that we'd want to only build on changes.

@iangrunert
Copy link
Copy Markdown
Contributor Author

Yeah it's not too bad; they also only get built if ICU gets rebuilt and most of the time vcpkg doesn't change.

@iangrunert iangrunert merged commit 501528e into main Apr 10, 2026
1 check passed
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.

2 participants