From a70a63b1f69690f8a1832cb38b70f12506e35641 Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Mon, 5 Sep 2022 18:49:23 -0700 Subject: [PATCH] Ignore dotfiles in lookup_srcs (#1218) This makes the find and fd cases match, as fd already ignores dotfiles. --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 1993c475..02fd00d9 100644 --- a/common.mk +++ b/common.mk @@ -66,7 +66,7 @@ include $(base_dir)/tools/torture.mk # Returns a list of files in directory $1 with file extension $2. # If available, use 'fd' to find the list of files, which is faster than 'find'. ifeq ($(shell which fd 2> /dev/null),) - lookup_srcs = $(shell find -L $(1)/ -name target -prune -o -iname "*.$(2)" -print 2> /dev/null) + lookup_srcs = $(shell find -L $(1)/ -name target -prune -o \( -iname "*.$(2)" ! -iname ".*" \) -print 2> /dev/null) else lookup_srcs = $(shell fd -L ".*\.$(2)" $(1)) endif