summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-04-21 15:35:15 +0200
committer hap <happppp@users.noreply.github.com>2025-04-21 15:35:28 +0200
commit615951268ab1b527a564b901791ce1defdc81497 (patch)
tree471783c5387dce005b59c47e88c94f615810e8dc /makefile
parentd7c8ccee321e39d5e3a1d8b6605d63fc2242805b (diff)
makefile: get windows cpu arch from registry instead of wmic
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/makefile b/makefile
index 5ba22f2cc41..7a44c54e3c1 100644
--- a/makefile
+++ b/makefile
@@ -150,8 +150,8 @@ PLATFORM := x86
else ifeq ($(MSYSTEM),CLANGARM64)
PLATFORM := arm64
else # MSYSTEM
-OSARCH := $(shell wmic OS get OSArchitecture)
-ifneq ($(findstring ARM 64-bit,$(OSARCH)),)
+OSARCH := $(shell reg query "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v PROCESSOR_ARCHITECTURE)
+ifneq ($(findstring ARM64,$(OSARCH)),)
PLATFORM := arm64
else # OSARCH
PLATFORM := x86