1LOCAL_PATH := $(call my-dir) 2 3include $(CLEAR_VARS) 4LOCAL_MODULE := test-c-only-flags 5LOCAL_SRC_FILES := test-c-only-flags.cpp 6LOCAL_CFLAGS += -Werror 7 8# LOCAL_CFLAGS is passed for C++ compilation as well. This is by design 9# to save developers from the trouble of specifying flags twice for both 10# LOCAL_CFLAGS and LOCAL_CPPFLAGS. Unfortunately for flags like -std=gnu99 11# is harmful to g++ (warning) and clang++ (error) 12LOCAL_CONLYFLAGS += -std=gnu99 13 14include $(BUILD_EXECUTABLE) 15