Allow $(ARCH) to be defined during build (#471)

This can be useful when crossbuilding or building in a chroot where using
uname -m would cause the wrong compiler options.
This commit is contained in:
Unit 193 2019-10-02 15:31:07 -04:00 committed by Mounir IDRASSI
parent 0d91dab5b9
commit 10c4a3e807

View File

@ -132,7 +132,7 @@ export PLATFORM_UNSUPPORTED := 0
export CPU_ARCH ?= unknown
export SIMD_SUPPORTED := 0
ARCH = $(shell uname -m)
ARCH ?= $(shell uname -m)
ifneq (,$(filter i386 i486 i586 i686 x86,$(ARCH)))
CPU_ARCH = x86