summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-02-13 22:42:20 +0800
committerruki <[email protected]>2020-02-13 10:14:04 +0800
commitc1538384d08541509c463097bf26d1540d7d584d (patch)
tree79ed34248a6ab39410612d9229716f8ebf698784
parent4cd450c954ecea35e8854dac5ad1062281bfc4c1 (diff)
fix build xmake on cygwin
-rw-r--r--core/makefile1
-rw-r--r--makefile1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/makefile b/core/makefile
index 7278bf18e..44d334871 100644
--- a/core/makefile
+++ b/core/makefile
@@ -161,6 +161,7 @@ ifeq ($(ARCH),)
ARCH :=$(if $(findstring windows,$(PLAT)),x86,$(ARCH))
ARCH :=$(if $(findstring msys,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
+ARCH :=$(if $(findstring cygwin,$(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))
diff --git a/makefile b/makefile
index 87d5fb0e5..c10406f0f 100644
--- a/makefile
+++ b/makefile
@@ -36,6 +36,7 @@ ifeq ($(ARCH),)
ARCH :=$(if $(findstring windows,$(PLAT)),x86,$(ARCH))
ARCH :=$(if $(findstring msys,$(PLAT)),x$(shell getconf LONG_BIT),$(ARCH))
+ARCH :=$(if $(findstring cygwin,$(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))