* commit '96f480c93a318fc6550ef2c4d13e6e67574bfb96': Bump the default C++ standard up to C++14.
This commit is contained in:
@@ -180,6 +180,22 @@ ifdef LOCAL_IS_HOST_MODULE
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
my_cpp_std_version := -std=gnu++14
|
||||||
|
ifdef LOCAL_SDK_VERSION
|
||||||
|
# The NDK handles this itself.
|
||||||
|
my_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
|
||||||
|
# never will). Build these modules with C++11.
|
||||||
|
my_cpp_std_version := -std=gnu++11
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
my_cppflags := $(my_cpp_std_version) $(my_cppflags)
|
||||||
|
|
||||||
# Add option to make clang the default for device build
|
# Add option to make clang the default for device build
|
||||||
ifeq ($(USE_CLANG_PLATFORM_BUILD),true)
|
ifeq ($(USE_CLANG_PLATFORM_BUILD),true)
|
||||||
ifeq ($(my_clang),)
|
ifeq ($(my_clang),)
|
||||||
|
@@ -115,7 +115,7 @@ hide := $(if $(SHOW_COMMANDS),,@)
|
|||||||
COMMON_GLOBAL_CFLAGS:= -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith
|
COMMON_GLOBAL_CFLAGS:= -DANDROID -fmessage-length=0 -W -Wall -Wno-unused -Winit-self -Wpointer-arith
|
||||||
COMMON_RELEASE_CFLAGS:= -DNDEBUG -UDEBUG
|
COMMON_RELEASE_CFLAGS:= -DNDEBUG -UDEBUG
|
||||||
|
|
||||||
COMMON_GLOBAL_CPPFLAGS:= $(COMMON_GLOBAL_CFLAGS) -Wsign-promo -std=gnu++11
|
COMMON_GLOBAL_CPPFLAGS:= $(COMMON_GLOBAL_CFLAGS) -Wsign-promo
|
||||||
COMMON_RELEASE_CPPFLAGS:= $(COMMON_RELEASE_CFLAGS)
|
COMMON_RELEASE_CPPFLAGS:= $(COMMON_RELEASE_CFLAGS)
|
||||||
|
|
||||||
GLOBAL_CFLAGS_NO_OVERRIDE := \
|
GLOBAL_CFLAGS_NO_OVERRIDE := \
|
||||||
|
Reference in New Issue
Block a user