Enable darwin target build for art.
Change-Id: I8fc04258360d663d2fcd07c307fdfdd2981cdd19
diff --git a/runtime/Android.mk b/runtime/Android.mk
index 5bcd3fb..bae7124 100644
--- a/runtime/Android.mk
+++ b/runtime/Android.mk
@@ -366,9 +366,11 @@
endif
# We always build dex2oat and dependencies, even if the host build is otherwise disabled, since they are used to cross compile for the target.
-ifeq ($(ART_BUILD_NDEBUG),true)
- $(eval $(call build-libart,host,ndebug))
-endif
-ifeq ($(ART_BUILD_DEBUG),true)
- $(eval $(call build-libart,host,debug))
+ifeq ($(WITH_HOST_DALVIK),true)
+ ifeq ($(ART_BUILD_NDEBUG),true)
+ $(eval $(call build-libart,host,ndebug))
+ endif
+ ifeq ($(ART_BUILD_DEBUG),true)
+ $(eval $(call build-libart,host,debug))
+ endif
endif