Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8375aa91 authored by Elliott Hughes's avatar Elliott Hughes Committed by android-build-merger
Browse files

Merge "Use the platform -std= for LOCAL_SDK_VERSION targets too." am: 1d7d1eb6

am: be692347

Change-Id: I836342c819bfb0dd5360c9e833859923d1f54e40
parents 6bd3e1f3 be692347
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -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