fix DCHECK in libartd
Change-Id: Iaea17ecdc56eba78795fc026ba01ac7f4c662095
diff --git a/build/Android.libart.mk b/build/Android.libart.mk
index 48ac809..b58d8e8 100644
--- a/build/Android.libart.mk
+++ b/build/Android.libart.mk
@@ -38,11 +38,12 @@
else
LOCAL_CFLAGS := $(ART_HOST_CFLAGS)
endif
- ifeq ($(4),debug)
- ifeq ($(3),target)
+ ifeq ($(2),debug)
+ ifeq ($(1),target)
LOCAL_CFLAGS += $(ART_TARGET_DEBUG_CFLAGS)
else
LOCAL_CFLAGS += $(ART_HOST_DEBUG_CFLAGS)
+ LOCAL_STATIC_LIBRARIES := libgtest_host
endif
endif
LOCAL_C_INCLUDES += $(ART_C_INCLUDES)