Switch benchmarks and tests to libc++.
Change-Id: I3b9c8f8c14a1e227e67ae1977cc29b0e8fccef5d
This commit is contained in:
		| @@ -49,9 +49,8 @@ LOCAL_MODULE_STEM_64 := bionic-benchmarks64 | |||||||
| LOCAL_MULTILIB := both | LOCAL_MULTILIB := both | ||||||
| LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk | ||||||
| LOCAL_CFLAGS += $(benchmark_c_flags) | LOCAL_CFLAGS += $(benchmark_c_flags) | ||||||
| LOCAL_C_INCLUDES += external/stlport/stlport bionic/ bionic/libstdc++/include |  | ||||||
| LOCAL_SHARED_LIBRARIES += libstlport |  | ||||||
| LOCAL_SRC_FILES := $(benchmark_src_files) | LOCAL_SRC_FILES := $(benchmark_src_files) | ||||||
|  | LOCAL_CXX_STL := libc++ | ||||||
| include $(BUILD_EXECUTABLE) | include $(BUILD_EXECUTABLE) | ||||||
|  |  | ||||||
| ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64)) | ifeq ($(HOST_OS)-$(HOST_ARCH),$(filter $(HOST_OS)-$(HOST_ARCH),linux-x86 linux-x86_64)) | ||||||
|   | |||||||
| @@ -15,6 +15,7 @@ | |||||||
| # | # | ||||||
|  |  | ||||||
| include $(CLEAR_VARS) | include $(CLEAR_VARS) | ||||||
|  | LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk | ||||||
|  |  | ||||||
| LOCAL_MODULE := $(module) | LOCAL_MODULE := $(module) | ||||||
| LOCAL_MODULE_TAGS := $(module_tag) | LOCAL_MODULE_TAGS := $(module_tag) | ||||||
| @@ -85,9 +86,13 @@ LOCAL_LDLIBS := \ | |||||||
|     $($(module)_ldlibs) \ |     $($(module)_ldlibs) \ | ||||||
|     $($(module)_ldlibs_$(build_type)) \ |     $($(module)_ldlibs_$(build_type)) \ | ||||||
|  |  | ||||||
| ifeq ($(build_type),target) | ifeq ($(LOCAL_FORCE_STATIC_EXECUTABLE),true) | ||||||
|   include external/stlport/libstlport.mk | LOCAL_CXX_STL := libc++_static | ||||||
|  | else | ||||||
|  | LOCAL_CXX_STL := libc++ | ||||||
|  | endif | ||||||
|  |  | ||||||
|  | ifeq ($(build_type),target) | ||||||
|   include $(BUILD_$(build_target)) |   include $(BUILD_$(build_target)) | ||||||
| endif | endif | ||||||
|  |  | ||||||
|   | |||||||
| @@ -271,10 +271,10 @@ bionic-unit-tests-static_whole_static_libraries := \ | |||||||
|     libBionicTests \ |     libBionicTests \ | ||||||
|  |  | ||||||
| bionic-unit-tests-static_static_libraries := \ | bionic-unit-tests-static_static_libraries := \ | ||||||
|     libstlport_static \ |  | ||||||
|     libm \ |     libm \ | ||||||
|     libc \ |     libc \ | ||||||
|     libstdc++ \ |     libc++_static \ | ||||||
|  |     libdl \ | ||||||
|     libtinyxml2 \ |     libtinyxml2 \ | ||||||
|     liblog \ |     liblog \ | ||||||
|  |  | ||||||
|   | |||||||
| @@ -14,8 +14,10 @@ | |||||||
|  * limitations under the License. |  * limitations under the License. | ||||||
|  */ |  */ | ||||||
|  |  | ||||||
| #include <stdatomic.h> |  | ||||||
| #include <gtest/gtest.h> | #include <gtest/gtest.h> | ||||||
|  | // Fool stdatomic.h into not using <atomic>. | ||||||
|  | #undef _USING_LIBCXX | ||||||
|  | #include <stdatomic.h> | ||||||
| #include <pthread.h> | #include <pthread.h> | ||||||
| #include <stdint.h> | #include <stdint.h> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dan Albert
					Dan Albert