From 3b4d17ffe7a8c9ec193d765ee6bd9c2606257344 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 5 Oct 2016 23:26:24 -0700 Subject: [PATCH] Use ASAN prebuilts if SANITIZE_HOST includes address Test: SANITIZE_HOST=address m -j showcommands Change-Id: Ifdca98d5fa32867005ace99e1eb5188e22923ac6 --- core/config.mk | 4 ++++ core/ninja.mk | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/core/config.mk b/core/config.mk index bab31b788..d46e5deed 100644 --- a/core/config.mk +++ b/core/config.mk @@ -463,7 +463,11 @@ ZIP2ZIP := $(SOONG_HOST_OUT_EXECUTABLES)/zip2zip # Always use prebuilts for ckati and makeparallel prebuilt_build_tools := prebuilts/build-tools +ifeq ($(filter address,$(SANITIZE_HOST)),) prebuilt_build_tools_bin := $(prebuilt_build_tools)/$(HOST_PREBUILT_TAG)/bin +else +prebuilt_build_tools_bin := $(prebuilt_build_tools)/$(HOST_PREBUILT_TAG)/asan/bin +endif ACP := $(prebuilt_build_tools_bin)/acp CKATI := $(prebuilt_build_tools_bin)/ckati IJAR := $(prebuilt_build_tools_bin)/ijar diff --git a/core/ninja.mk b/core/ninja.mk index 3779df34a..50bb56d4a 100644 --- a/core/ninja.mk +++ b/core/ninja.mk @@ -1,4 +1,8 @@ +ifeq ($(filter address,$(SANITIZE_HOST)),) NINJA ?= prebuilts/build-tools/$(HOST_PREBUILT_TAG)/bin/ninja +else +NINJA ?= prebuilts/build-tools/$(HOST_PREBUILT_TAG)/asan/bin/ninja +endif include $(BUILD_SYSTEM)/soong.mk