diff --git a/bootstat/Android.mk b/bootstat/Android.mk index 529fd33f5..223450d72 100644 --- a/bootstat/Android.mk +++ b/bootstat/Android.mk @@ -40,16 +40,12 @@ bootstat_cflags := \ -Werror bootstat_cppflags := \ - -Wno-non-virtual-dtor \ - -std=c++14 + -Wno-non-virtual-dtor bootstat_debug_cflags := \ $(bootstat_cflags) \ -UNDEBUG -bootstat_debug_cppflags := \ - -std=c++14 - # 524291 corresponds to sysui_histogram, from # frameworks/base/core/java/com/android/internal/logging/EventLogTags.logtags bootstat_cflags += -DHISTOGRAM_LOG_TAG=524291 @@ -66,6 +62,7 @@ LOCAL_CPPFLAGS := $(bootstat_cppflags) LOCAL_C_INCLUDES := $(bootstat_c_includes) LOCAL_SHARED_LIBRARIES := $(bootstat_shared_libs) LOCAL_SRC_FILES := $(bootstat_lib_src_files) +# Clang is required because of C++14 LOCAL_CLANG := true include $(BUILD_STATIC_LIBRARY) @@ -81,6 +78,7 @@ LOCAL_CPPFLAGS := $(bootstat_debug_cppflags) LOCAL_C_INCLUDES := $(bootstat_c_includes) LOCAL_SHARED_LIBRARIES := $(bootstat_shared_libs) LOCAL_SRC_FILES := $(bootstat_lib_src_files) +# Clang is required because of C++14 LOCAL_CLANG := true include $(BUILD_STATIC_LIBRARY) @@ -96,6 +94,7 @@ LOCAL_CPPFLAGS := $(bootstat_cppflags) LOCAL_C_INCLUDES := $(bootstat_c_includes) LOCAL_SHARED_LIBRARIES := $(bootstat_shared_libs) LOCAL_SRC_FILES := $(bootstat_lib_src_files) +# Clang is required because of C++14 LOCAL_CLANG := true include $(BUILD_HOST_STATIC_LIBRARY) @@ -112,6 +111,7 @@ LOCAL_C_INCLUDES := $(bootstat_c_includes) LOCAL_SHARED_LIBRARIES := $(bootstat_shared_libs) LOCAL_STATIC_LIBRARIES := libbootstat LOCAL_SRC_FILES := $(bootstat_src_files) +# Clang is required because of C++14 LOCAL_CLANG := true include $(BUILD_EXECUTABLE) @@ -127,6 +127,7 @@ LOCAL_CPPFLAGS := $(bootstat_cppflags) LOCAL_SHARED_LIBRARIES := $(bootstat_shared_libs) LOCAL_STATIC_LIBRARIES := libbootstat_debug libgmock LOCAL_SRC_FILES := $(bootstat_test_src_files) +# Clang is required because of C++14 LOCAL_CLANG := true include $(BUILD_NATIVE_TEST) @@ -142,6 +143,7 @@ LOCAL_CPPFLAGS := $(bootstat_cppflags) LOCAL_SHARED_LIBRARIES := $(bootstat_shared_libs) LOCAL_STATIC_LIBRARIES := libbootstat_host_debug libgmock_host LOCAL_SRC_FILES := $(bootstat_test_src_files) +# Clang is required because of C++14 LOCAL_CLANG := true include $(BUILD_HOST_NATIVE_TEST)