ART: Make build error a warning for TARGET_CPU_SMP
Builds that do not build for targets will not have this information.
Make it a warning.
Change-Id: Ibd5fa6f5d2c1cf6d86de30df24d25eddb23fb81d
diff --git a/build/Android.common.mk b/build/Android.common.mk
index 75d360c..7f33ee5 100644
--- a/build/Android.common.mk
+++ b/build/Android.common.mk
@@ -254,7 +254,9 @@
ifeq ($(TARGET_CPU_SMP),false)
ART_TARGET_CFLAGS += -DANDROID_SMP=0
else
- $(error TARGET_CPU_SMP must be (true|false), found $(TARGET_CPU_SMP))
+ $(warning TARGET_CPU_SMP should be (true|false), found $(TARGET_CPU_SMP))
+ # Make sure we emit barriers for the worst case.
+ ART_TARGET_CFLAGS += -DANDROID_SMP=1
endif
endif
ART_TARGET_CFLAGS += $(ART_DEFAULT_GC_TYPE_CFLAGS)