aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2023-01-29 03:33:37 -0800
committerRon Evans <[email protected]>2023-01-30 21:42:47 +0100
commitdf0f5ae1da0fdb7b136e70ca9bd1e3217c04dbcd (patch)
treed9156f0ebe67d883f9fe2195d48cf9b183fd39e4 /Makefile
parent45c8817ddd6818ec96d4f180dc15237e945e5122 (diff)
downloadtinygo-df0f5ae1da0fdb7b136e70ca9bd1e3217c04dbcd.tar.gz
tinygo-df0f5ae1da0fdb7b136e70ca9bd1e3217c04dbcd.zip
windows: add ARM64 support
This was actually surprising once I got TinyGo to build on Windows 11 ARM64. All the changes are exactly what you'd expect for a new architecture, there was no special weirdness just for arm64. Actually getting TinyGo to build was kind of involved though. The very short summary is: install arm64 versions of some pieces of software (like golang, cmake) instead of installing them though choco. In particular, use the llvm-mingw[1] toolchain instead of using standard mingw. [1]: https://github.com/mstorsjo/llvm-mingw/releases
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 97ba293cb..73c25806c 100644
--- a/Makefile
+++ b/Makefile
@@ -738,6 +738,7 @@ endif
@$(MD5SUM) test.hex
GOOS=linux GOARCH=arm $(TINYGO) build -size short -o test.elf ./testdata/cgo
GOOS=windows GOARCH=amd64 $(TINYGO) build -size short -o test.exe ./testdata/cgo
+ GOOS=windows GOARCH=arm64 $(TINYGO) build -size short -o test.exe ./testdata/cgo
GOOS=darwin GOARCH=amd64 $(TINYGO) build -size short -o test ./testdata/cgo
GOOS=darwin GOARCH=arm64 $(TINYGO) build -size short -o test ./testdata/cgo
ifneq ($(OS),Windows_NT)