build: in Makefile.m32 simplified autodetection.
This commit is contained in:
@@ -67,8 +67,7 @@ STRIP = $(CROSSPREFIX)strip -g
|
|||||||
|
|
||||||
# Set environment var ARCH to your architecture to override autodetection.
|
# Set environment var ARCH to your architecture to override autodetection.
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
TARGET := $(shell $(CC) -dumpmachine)
|
ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64)
|
||||||
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
|
|
||||||
ARCH = w64
|
ARCH = w64
|
||||||
else
|
else
|
||||||
ARCH = w32
|
ARCH = w32
|
||||||
|
|||||||
@@ -82,8 +82,7 @@ STRIP = $(CROSSPREFIX)strip -g
|
|||||||
|
|
||||||
# Set environment var ARCH to your architecture to override autodetection.
|
# Set environment var ARCH to your architecture to override autodetection.
|
||||||
ifndef ARCH
|
ifndef ARCH
|
||||||
TARGET := $(shell $(CC) -dumpmachine)
|
ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64)
|
||||||
ifeq ($(findstring x86_64,$(TARGET)),x86_64)
|
|
||||||
ARCH = w64
|
ARCH = w64
|
||||||
else
|
else
|
||||||
ARCH = w32
|
ARCH = w32
|
||||||
|
|||||||
Reference in New Issue
Block a user