Revert "Revert "Use the Finder's results for faster searching""
This reverts commit 6f2aea5636e62197c7938073ee52dace620e03c5.
Reason for revert: Fix went in ( I70b08023b94b5789dc8394651bbac4c49c82787f ); trying again to use this
Change-Id: I0f58c21a7312dda01980d338401e756f610fe3b4
diff --git a/core/main.mk b/core/main.mk
index ef690e0..66b8951 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -403,7 +403,7 @@
# Include all of the makefiles in the system
#
-subdir_makefiles := $(SOONG_ANDROID_MK) $(call first-makefiles-under,$(TOP))
+subdir_makefiles := $(SOONG_ANDROID_MK) $(file <$(OUT_DIR)/.module_paths/Android.mk.list)
subdir_makefiles_total := $(words $(subdir_makefiles))
.KATI_READONLY := subdir_makefiles_total