Change-Id: I9ffd8e906674d3a8e4870142cd4b6e64c186bef6
-W \
-Wno-unused-parameter \
-Wwrite-strings \
- -Werror \
-Dsprintf=sprintf \
$(LOCAL_CFLAGS)
+LOCAL_CFLAGS_linux += -Werror
+LOCAL_CFLAGS_darwin += -Werror
+
# The three inline options together reduce libbcc.so almost 1MB.
# We move them from global build/core/combo/TARGET_linux-arm.mk
# to here.
-W \
-Wno-unused-parameter \
-Wwrite-strings \
- -Werror \
-Dsprintf=sprintf \
$(LOCAL_CFLAGS)
+LOCAL_CFLAGS_linux += -Werror
+LOCAL_CFLAGS_darwin += -Werror
+
ifeq ($(FORCE_BUILD_LLVM_DISABLE_NDEBUG),true)
LOCAL_CFLAGS := \
$(LOCAL_CFLAGS) \