Merge "Use the platform -std= for LOCAL_SDK_VERSION targets too."

This commit is contained in:
Elliott Hughes 2018-02-20 15:27:54 +00:00 committed by Gerrit Code Review
commit 1d7d1eb65e

View file

@ -180,7 +180,6 @@ ifneq ($(LOCAL_SDK_VERSION),)
my_ndk_stl_include_path :=
my_ndk_stl_shared_lib_fullpath :=
my_ndk_stl_static_lib :=
my_ndk_cpp_std_version :=
my_cpu_variant := $(TARGET_$(LOCAL_2ND_ARCH_VAR_PREFIX)CPU_ABI)
ifeq (mips32r6,$(TARGET_$(LOCAL_2ND_ARCH_VAR_PREFIX)ARCH_VARIANT))
my_cpu_variant := mips32r6
@ -220,8 +219,6 @@ ifneq ($(LOCAL_SDK_VERSION),)
endif
my_ldlibs += -ldl
my_ndk_cpp_std_version := c++11
else # LOCAL_NDK_STL_VARIANT must be none
# Do nothing.
endif
@ -381,11 +378,6 @@ ifneq ($(my_clang),true)
my_cpp_std_version := $(DEFAULT_GCC_CPP_STD_VERSION)
endif
ifdef LOCAL_SDK_VERSION
# The NDK handles this itself.
my_cpp_std_version := $(my_ndk_cpp_std_version)
endif
ifdef LOCAL_IS_HOST_MODULE
ifneq ($(my_clang),true)
# The host GCC doesn't support C++14 (and is deprecated, so likely