From e9f7a9c340a3af11de720042fdc5061b65dc9b78 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Tue, 10 Jun 2014 19:46:07 -0700 Subject: [PATCH] Allow bionic-unit-tests-glibc to be built again. When we switched to 64 bit host build be default, we no longer build the glibc unit tests. Fix that, and also set all host targets to build multilib. This change also changes the name of bionic-unit-tests-glibc to add the suffix of 32 or 64 depending on the host type built. Change-Id: Ife13f9d80f351750ff02825b086d44bb0c2df828 --- tests/Android.build.mk | 8 ++++++++ tests/Android.mk | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/Android.build.mk b/tests/Android.build.mk index c1a0f16af..e65ec1673 100644 --- a/tests/Android.build.mk +++ b/tests/Android.build.mk @@ -18,11 +18,19 @@ include $(CLEAR_VARS) LOCAL_MODULE := $(module) LOCAL_MODULE_TAGS := $(module_tag) +ifeq ($(build_type),host) +# Always make host multilib +LOCAL_MULTILIB := both +else LOCAL_MULTILIB := $($(module)_multilib) +endif + +ifneq ($(findstring LIBRARY, $(build_target)),LIBRARY) ifeq ($(LOCAL_MULTILIB),both) LOCAL_MODULE_STEM_32 := $(module)32 LOCAL_MODULE_STEM_64 := $(module)64 endif +endif LOCAL_CLANG := $($(module)_clang_$(build_type)) diff --git a/tests/Android.mk b/tests/Android.mk index 56b1ef12e..c2e76b6bc 100644 --- a/tests/Android.mk +++ b/tests/Android.mk @@ -365,7 +365,7 @@ include $(LOCAL_PATH)/Android.build.mk # cd bionic/tests; mm bionic-unit-tests-glibc-run # ----------------------------------------------------------------------------- -ifeq ($(HOST_OS)-$(HOST_ARCH),linux-x86) +ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64)) bionic-unit-tests-glibc_src_files := \ atexit_test.cpp \