From adf7ef8eb9747d94fc34f82615af547aace7051f Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 16 Feb 2018 17:12:21 -0800 Subject: [PATCH] Use the platform -std= for LOCAL_SDK_VERSION targets too. Bug: http://b/72571399 Test: builds Change-Id: Ifd06798a7c9af9fd316201d88b724a53bcf0bcd9 --- core/binary.mk | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/binary.mk b/core/binary.mk index e3da7d246..37db328e8 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -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