From 097395959cdb53af54e261ac94369e85c2dd80a4 Mon Sep 17 00:00:00 2001 From: Samuel Gomes Date: Sat, 4 Mar 2023 11:24:44 +0530 Subject: [PATCH] Update Makefile to correctly set BITS when on WoA64 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 16f14c4d6..a05b07636 100644 --- a/Makefile +++ b/Makefile @@ -75,10 +75,10 @@ ifeq ($(OS),win) EXTENSION := .exe # Check bitness by seeing which compiler we have - ifeq ($(wildcard $(PATH_INTERNAL_C)\c_compiler\i686-w64-mingw32),) - BITS := 64 - else + ifeq "$(filter $(findstring aarch64,$(shell $(CC) -dumpmachine)) $(findstring x86_64,$(shell $(CC) -dumpmachine)),aarch64 x86_64)" "" BITS := 32 + else + BITS := 64 endif endif