Makefile: really set the default value of ARCH to native

This commit is contained in:
yzh 2017-06-06 00:02:49 +08:00
parent c66160c004
commit 70f0bf1591
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ ifeq ($(AM_HOME),) # AM_HOME must exist
$(error Environment variable AM_HOME must be defined.)
endif
ARCH ?= native
ARCHS = $(shell ls $(AM_HOME)/am/arch/)
ifeq ($(filter $(ARCHS), $(ARCH)), ) # ARCH must be valid