From c28e4bcb1cbe76ac1bb90c8f38eb5240ca0c1386 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 14 Sep 2016 16:08:48 -0700 Subject: [PATCH] Use libcompiler-rt_extras with NDK builds. We want to build things in CTS (things built against the NDK) with integer overflow checks. Some projects in the tree also make explicit calls to the overflow checked builtins, and those projects need to be built with the NDK (external/dng_sdk is the specific example that brought this up). Test: make checkbuild tests Bug: None Change-Id: Iab27dd0d931f723140de242049fa72f3b1ce0fb8 --- core/binary.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/binary.mk b/core/binary.mk index 828dcdb78..058c7e480 100644 --- a/core/binary.mk +++ b/core/binary.mk @@ -418,7 +418,7 @@ include $(BUILD_SYSTEM)/config_sanitizers.mk ifneq ($(LOCAL_NO_LIBCOMPILER_RT),true) # Add in libcompiler_rt for all regular device builds -ifeq (,$(LOCAL_SDK_VERSION)$(WITHOUT_LIBCOMPILER_RT)) +ifeq (,$(WITHOUT_LIBCOMPILER_RT)) my_static_libraries += $(COMPILER_RT_CONFIG_EXTRA_STATIC_LIBRARIES) endif endif -- 2.11.0