diff options
| author | 2025-04-21 15:35:15 +0200 | |
|---|---|---|
| committer | 2025-04-21 15:35:28 +0200 | |
| commit | 615951268ab1b527a564b901791ce1defdc81497 (patch) | |
| tree | 471783c5387dce005b59c47e88c94f615810e8dc /makefile | |
| parent | d7c8ccee321e39d5e3a1d8b6605d63fc2242805b (diff) | |
makefile: get windows cpu arch from registry instead of wmic
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
