Skip to content

Commit 1293ac3

Browse files
authoredAug 22, 2023
Support windows on ARM, (fixes #238) (#240)
1 parent 5f5f95c commit 1293ac3

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed
 

‎Makefile

+8-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ linux-armv6-digest:=@sha256:7bad6ab302af34bdf6634c8c2b02c8dc6ac932c67da9ecc199c5
1919
linux-x86-digest:=@sha256:7a8fda5ff1bb436ac1f2e7d40043deb630800fce33d123d04779d48f85702dcd
2020
windows-static-x86-digest:=@sha256:896bd4a43bbc89502904afdc8d00e6f2422f8f35852cc59777d6426bfc8491e8
2121
windows-static-x64-digest:=@sha256:f159861bc80b29e5dafb223477167bec53ecec6cdacb051d31e90c5823542100
22+
windows-arm64-digest:=@sha256:f4b3c1a49ec8b53418cef1499dc3f9a54a5570b7a3ecdf42fc8c83eb94b01b7d
2223
cross-build-digest:=@sha256:8dbaa86462270db93ae1b1b319bdd88d89272faf3a68632daf4fa36b414a326e
2324
freebsd-crossbuild-digest:=@sha256:cda62697a15d8bdc0bc26e780b1771ee78f12c55e7d5813e62c478af5a747c43
2425
mcandre-snek-digest:=@sha256:9f84e9fcdf66daafc1f1c3fb772a6c97977714e17800aeac2e3bbe5dc5039dd0
@@ -78,7 +79,7 @@ NATIVE_DLL:=$(NATIVE_DIR)/$(LIBNAME)
7879
# For cross-compilation, install docker. See also https://github.com/dockcross/dockcross
7980
# Disabled linux-armv6 build because of this issue; https://github.com/dockcross/dockcross/issues/190
8081
native-all: linux-x86 linux-x86_64 linux-arm linux-armv6 linux-armv7 \
81-
linux-arm64 linux-ppc64 win-x86 win-x86_64 mac-x86 mac-x86_64 mac-arm64 freebsd-x86 freebsd-x86_64
82+
linux-arm64 linux-ppc64 win-x86 win-x86_64 win-arm64 mac-x86 mac-x86_64 mac-arm64 freebsd-x86 freebsd-x86_64
8283

8384
native: $(NATIVE_DLL)
8485

@@ -132,6 +133,12 @@ target/dockcross/dockcross-windows-static-x64: dockcross
132133
win-x86_64: download-includes target/dockcross/dockcross-windows-static-x64
133134
target/dockcross/dockcross-windows-static-x64 bash -c 'make clean-native native CROSS_PREFIX=x86_64-w64-mingw32.static- OS_NAME=Windows OS_ARCH=x86_64'
134135

136+
target/dockcross/dockcross-windows-arm64: dockcross
137+
docker run --rm dockcross/windows-arm64$(windows-arm64-digest) > target/dockcross/dockcross-windows-arm64
138+
chmod +x target/dockcross/dockcross-windows-arm64
139+
win-arm64: download-includes target/dockcross/dockcross-windows-arm64
140+
target/dockcross/dockcross-windows-arm64 bash -c 'make clean-native native CROSS_PREFIX=aarch64-w64-mingw32- OS_NAME=Windows OS_ARCH=arm64'
141+
135142
mac-x86: download-includes
136143
docker run -it --rm -v $$PWD:/workdir --user $$(id -u):$$(id -g) \
137144
-e CROSS_TRIPLE=i386-apple-darwin multiarch/crossbuild$(cross-build-digest) make clean-native native OS_NAME=Mac OS_ARCH=x86
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.