diff options
| author | ruki <[email protected]> | 2020-02-26 22:59:11 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-26 11:55:08 +0800 |
| commit | 0c31cf19ba5cee16674e4141c51d95573553199f (patch) | |
| tree | cb9a6b29c2ffc6e0a31a58f8639652d78cb90b68 /core/makefile | |
| parent | e08401afa95c6217bb04ee188f3d3337abbe9ca2 (diff) | |
improve to detect arch for msys/ci
Diffstat (limited to 'core/makefile')
| -rw-r--r-- | core/makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/makefile b/core/makefile index 94a9d60a4..5105a95d3 100644 --- a/core/makefile +++ b/core/makefile @@ -159,7 +159,7 @@ PLAT :=$(if $(PLAT),$(PLAT),linux) # architecture ifeq ($(ARCH),) ifneq ($(MSYSTEM_CARCH),) -MSYSARCH := $(MSYSTEM_CARCH) +MSYSARCH := $(if $(findstring mingw32,$(shell which gcc)),i386,$(MSYSTEM_CARCH)) else MSYSARCH := x$(shell getconf LONG_BIT) endif @@ -170,7 +170,6 @@ 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 iphoneos,$(PLAT)),armv7,$(ARCH)) ARCH :=$(if $(findstring android,$(PLAT)),armv7,$(ARCH)) -ARCH :=$(if $(findstring any,$(ARCH)),i386,$(ARCH)) # from msys/PKGBUILD ARCH :=$(if $(findstring i686,$(ARCH)),i386,$(ARCH)) # from msys/mingw32 ARCH :=$(if $(findstring x32,$(ARCH)),i386,$(ARCH)) ARCH :=$(if $(findstring x64,$(ARCH)),x86_64,$(ARCH)) |
