Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a378a3a authored by Shinichiro Hamaji's avatar Shinichiro Hamaji
Browse files

Prevent findleaves.py from traversing copies of $(OUT_DIR)

by putting blank Android.mk and CleanSpec.mk in $(OUT_DIR).

Bug: 25732342
Change-Id: I3fcc4efddb9ee5ce309502e978f0589335af8371
parent 2f05af74
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -113,6 +113,11 @@ ifndef BUILDING_WITH_NINJA
$(shell rm -f $(OUT_DIR)/ninja_build)
endif

# With these files findleaves.py won't be unnecessarily slower even if
# there is a user creates a copy of $(OUT_DIR).
$(shell echo '# This file prevents findleaves.py from traversing this directory further' > $(OUT_DIR)/Android.mk)
$(shell echo '# This file prevents findleaves.py from traversing this directory further' > $(OUT_DIR)/CleanSpec.mk)

# Write the build number to a file so it can be read back in
# without changing the command line every time.  Avoids rebuilds
# when using ninja.