From dd880e0f3060b689aeaee5c28902f144812237f6 Mon Sep 17 00:00:00 2001 From: Selim Gurun Date: Thu, 24 May 2012 12:57:07 -0700 Subject: Modify makefile for building for ASAN Change-Id: Iaeca0893acb9df9c919f3b72c03ff99745ab4e82 --- Android.mk | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 61bd467..f3e9fad 100644 --- a/Android.mk +++ b/Android.mk @@ -333,6 +333,11 @@ WEBKIT_LDLIBS := $(LOCAL_LDLIBS) WEBKIT_SHARED_LIBRARIES := $(LOCAL_SHARED_LIBRARIES) WEBKIT_STATIC_LIBRARIES := $(LOCAL_STATIC_LIBRARIES) +ifneq ($(strip $(WITH_ADDRESS_SANITIZER)),) + LOCAL_MODULE_PATH := $(TARGET_OUT_STATIC_LIBRARIES)/asan + LOCAL_ADDRESS_SANITIZER := true +endif + # Build the library all at once include $(BUILD_STATIC_LIBRARY) @@ -374,6 +379,12 @@ endif # We make all of our object files depend on those files so that they are built # before we try to compile the file. LOCAL_ADDITIONAL_DEPENDENCIES := $(filter %.h, $(WEBKIT_GENERATED_SOURCES)) + +ifneq ($(strip $(WITH_ADDRESS_SANITIZER)),) + LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/asan + LOCAL_ADDRESS_SANITIZER := true +endif + include $(BUILD_SHARED_LIBRARY) # Build the wds client -- cgit v1.1