Make libc++ the default STL.
Previously, code defaulted to using libstdc++ (which was GNU libstdc++
on the host, or Bionic's "libstdc++" on the target). Now we default to
libc++. The exception for this is when using mingw, because we cannot
build libc++ for mingw.
Change-Id: I68726fa26cdcb6263f17c838d3e859debd57fae1
diff --git a/core/cxx_stl_setup.mk b/core/cxx_stl_setup.mk
index 4f41daa..0f574d2 100644
--- a/core/cxx_stl_setup.mk
+++ b/core/cxx_stl_setup.mk
@@ -4,16 +4,14 @@
## Output variables: My_cflags, my_c_includes, my_shared_libraries, etc.
#############################################################
-# Only around for development purposes. Will be removed soon.
-my_libcxx_is_default := false
-
# Select the appropriate C++ STL
ifeq ($(strip $(LOCAL_CXX_STL)),default)
ifndef LOCAL_SDK_VERSION
- ifeq ($(strip $(my_libcxx_is_default)),true)
- # Platform code. Select the appropriate STL.
+ # Platform code. Select the appropriate STL.
+ ifndef USE_MINGW
my_cxx_stl := libc++
else
+ # libc++ is not supported on mingw.
my_cxx_stl := libstdc++
endif
else