build: fix compile break for unsupported CPUs

Build with Makefile.unx on unsupported CPUs fail . It reports
"undefine references". Fix it with adding base aliases files
into sources list

Change-Id: I9fbdeee7cb82edc9d5d8461bee3f648be83feaa6
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
Jerry Yu 2019-08-08 12:56:45 +08:00
parent a95292aa01
commit 0c22fcd3e2

View File

@ -103,6 +103,11 @@ ARFLAGS = $(ARFLAGS_$(arch))
DEFINES += $(addprefix -D , $D)
CLEANFILES += $(O) *.o *.a $(all_tests) $(bin_PROGRAMS) $(lib_name) $(so_lib_name) $(all_llvm_fuzz_tests)
# set host_cpu=base_aliases for unsupported CPUs
ifeq ($(filter aarch64 x86_%,$(host_cpu)),)
host_cpu=base_aliases
endif
other_tests += $(other_tests_$(host_cpu))
lsrc += $(lsrc_$(host_cpu))