OSDN Git Service

Select the correct target STL with USE_MINGW.
authorDan Albert <danalbert@google.com>
Mon, 4 May 2015 23:34:19 +0000 (16:34 -0700)
committerDan Albert <danalbert@google.com>
Mon, 4 May 2015 23:34:19 +0000 (16:34 -0700)
The previous check tested against USE_MINGW even for target builds.
Hadn't been a problem because people don't typically set USE_MINGW
directly.

Change-Id: I90fe0ea890c44917eb29dd02d7c7f76c19e7fbd6

core/cxx_stl_setup.mk

index da84bdd..cbabc35 100644 (file)
@@ -8,16 +8,16 @@
 ifeq ($(strip $(LOCAL_CXX_STL)),default)
     ifndef LOCAL_SDK_VERSION
         # Platform code. Select the appropriate STL.
-        ifndef USE_MINGW
-            my_cxx_stl := libc++
-            ifdef LOCAL_IS_HOST_MODULE
-                ifneq (,$(BUILD_HOST_static))
-                    my_cxx_stl := libc++_static
-                endif
+        my_cxx_stl := libc++
+        ifdef LOCAL_IS_HOST_MODULE
+            ifneq (,$(BUILD_HOST_static))
+                my_cxx_stl := libc++_static
+            endif
+
+            ifdef USE_MINGW
+                # libc++ is not supported on mingw.
+                my_cxx_stl := libstdc++
             endif
-        else
-            # libc++ is not supported on mingw.
-            my_cxx_stl := libstdc++
         endif
     else
         my_cxx_stl := ndk