OSDN Git Service

Use libcompiler-rt_extras with NDK builds.
authorDan Albert <danalbert@google.com>
Wed, 14 Sep 2016 23:08:48 +0000 (16:08 -0700)
committerDan Albert <danalbert@google.com>
Wed, 14 Sep 2016 23:08:48 +0000 (16:08 -0700)
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

index 828dcdb..058c7e4 100644 (file)
@@ -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