summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2025-04-18 06:47:30 +1000
committer Vas Crabb <vas@vastheman.com>2025-04-18 07:13:19 +1000
commit33b1c17fe53558276d4db4d914d339102d529c7b (patch)
tree253441cdca17c2f7d2150e31beda72f2b79b0679
parentb26662f1bba6809df145d9e8b3f78f66e3a7c7db (diff)
makefile: Detect Windows for 64-bit ARM and set PLATFORM accordingly.
-rw-r--r--makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/makefile b/makefile
index 5aa597ee0e7..24adcc8151d 100644
--- a/makefile
+++ b/makefile
@@ -140,9 +140,14 @@ MAKEPARAMS := -R
#
ifeq ($(OS),Windows_NT)
+OSARCH := $(shell wmic OS get OSArchitecture)
OS := windows
GENIEOS := windows
+ifneq ($(findstring ARM 64-bit,$(OSARCH)),)
+PLATFORM := arm64
+else
PLATFORM := x86
+endif
else
UNAME := $(shell uname -mps)
UNAME_M := $(shell uname -m)