summaryrefslogtreecommitdiff
path: root/core/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-10 23:40:39 +0800
committerruki <[email protected]>2020-02-10 16:03:55 +0800
commit84f264409c95ace58e7fde0a7ed50103a604edad (patch)
treec6cd4ad1cf4ce2924658f38edc211a2566f72f0c /core/makefile
parent60802d45c53e0a63a5dba3da8a082140bb4cb979 (diff)
add mingw platform makefile
Diffstat (limited to 'core/makefile')
-rw-r--r--core/makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/makefile b/core/makefile
index e03a8eec4..55aeeeeb8 100644
--- a/core/makefile
+++ b/core/makefile
@@ -158,7 +158,7 @@ PLAT :=$(if $(PLAT),$(PLAT),linux)
ifeq ($(ARCH),)
ARCH :=$(if $(findstring windows,$(PLAT)),x86,$(ARCH))
-ARCH :=$(if $(findstring mingw,$(PLAT)),x86,$(ARCH))
+ARCH :=$(if $(findstring mingw,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
ARCH :=$(if $(findstring macosx,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
ARCH :=$(if $(findstring linux,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
ARCH :=$(if $(findstring x32,$(ARCH)),i386,$(ARCH))