From 4e2da3277a1297bd403b07abcf9a36275826424b Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 20 Mar 2018 13:36:40 -0700 Subject: [PATCH] Add asan-specific CleanSpec ASAN builds run as two consecutive builds. The cleanspec is applied by the first one, which cleans the obj directory, and ignored by the second. This can result in old entries in the obj_asan directory. Test: obj_asan dirs are deleted Change-Id: I54b8ec9cff581fcd9ec2a843aa7126805340c387 --- CleanSpec.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CleanSpec.mk b/CleanSpec.mk index 60aa7a7bdb..b58c2e6aed 100644 --- a/CleanSpec.mk +++ b/CleanSpec.mk @@ -475,6 +475,11 @@ $(call add-clean-step, rm -rf $(TARGET_OUT_COMMON_INTERMEDIATES)/APPS/*_intermed $(call add-clean-step, rm -rf $(TARGET_OUT_COMMON_INTERMEDIATES)/JAVA_LIBRARIES/*_intermediates/java-source-list) $(call add-clean-step, rm -rf $(OUT_DOCS)/*-timestamp) +$(call add-clean-step, rm -rf $(TARGET_COMMON_OUT_ROOT)/obj_asan/APPS/*_intermediates/src) +$(call add-clean-step, rm -rf $(TARGET_COMMON_OUT_ROOT)/obj_asan/JAVA_LIBRARIES/*_intermediates/src) +$(call add-clean-step, rm -rf $(TARGET_COMMON_OUT_ROOT)/obj_asan/APPS/*_intermediates/java-source-list) +$(call add-clean-step, rm -rf $(TARGET_COMMON_OUT_ROOT)/obj_asan/JAVA_LIBRARIES/*_intermediates/java-source-list) + # ************************************************ # NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST # ************************************************