Skip to content

Commit 90d82ea

Browse files
stephenhinesAndroid (Google) Code Review
authored andcommitted
Merge "Build /system/bin/asan/app_process."
2 parents e7aff29 + bb4cd82 commit 90d82ea

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

cmds/app_process/Android.mk

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,29 @@ LOCAL_SHARED_LIBRARIES := \
1313
LOCAL_MODULE:= app_process
1414

1515
include $(BUILD_EXECUTABLE)
16+
17+
18+
# Build a variant of app_process binary linked with ASan runtime.
19+
# ARM-only at the moment.
20+
ifeq ($(TARGET_ARCH),arm)
21+
22+
include $(CLEAR_VARS)
23+
24+
LOCAL_SRC_FILES:= \
25+
app_main.cpp
26+
27+
LOCAL_SHARED_LIBRARIES := \
28+
libcutils \
29+
libutils \
30+
libbinder \
31+
libandroid_runtime
32+
33+
LOCAL_MODULE := app_process__asan
34+
LOCAL_MODULE_TAGS := eng
35+
LOCAL_MODULE_PATH := $(TARGET_OUT_EXECUTABLES)/asan
36+
LOCAL_MODULE_STEM := app_process
37+
LOCAL_ADDRESS_SANITIZER := true
38+
39+
include $(BUILD_EXECUTABLE)
40+
41+
endif # ifeq($(TARGET_ARCH),arm)

0 commit comments

Comments
 (0)