Disable artifact path requirements for asan builds
asan builds create many artifacts that normal builds do not, and
are only used for testing. Disable artifact requirements for them.
Bug: 119270428
Test: build internal asan product
Change-Id: I8692ee7e8916d40a8a787c3a07dcf7d677b19cab
diff --git a/core/main.mk b/core/main.mk
index a2c2505..28b0995 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -1075,7 +1075,8 @@
product_MODULES := $(_pif_modules)
# Verify the artifact path requirements made by included products.
- ifneq (true,$(DISABLE_ARTIFACT_PATH_REQUIREMENTS))
+ is_asan := $(if $(filter address,$(SANITIZE_TARGET)),true)
+ ifneq (true,$(or $(is_asan),$(DISABLE_ARTIFACT_PATH_REQUIREMENTS)))
# Fakes don't get installed, and host files are irrelevant.
static_whitelist_patterns := $(TARGET_OUT_FAKE)/% $(HOST_OUT)/%
# RROs become REQUIRED by the source module, but are always placed on the vendor partition.