common/makefiles/NativeCompilation.gmk
changeset 15051 d32ad37472e6
parent 14615 2616975e69d3
child 17066 b2bf9afdd360
child 16988 53de314b1c30
--- a/common/makefiles/NativeCompilation.gmk	Thu Dec 27 20:15:22 2012 +0100
+++ b/common/makefiles/NativeCompilation.gmk	Thu Dec 27 20:18:21 2012 +0100
@@ -236,7 +236,7 @@
     $$(foreach d,$$($1_SRC), $$(if $$(wildcard $$d),,$$(error SRC specified to SetupNativeCompilation $1 contains missing directory $$d)))
 
     # Find all files in the source trees. Sort to remove duplicates.
-    $1_ALL_SRCS := $$(sort $$(shell $(FIND) $$($1_SRC) -type f))
+    $1_ALL_SRCS := $$(sort $$(call CacheFind,$$($1_SRC)))
     # Extract the C/C++ files.
     $1_EXCLUDE_FILES:=$$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$($1_EXCLUDE_FILES)))
     $1_INCLUDE_FILES:=$$(foreach i,$$($1_SRC),$$(addprefix $$i/,$$($1_INCLUDE_FILES)))