From 2f26c2962c0fa820859fd0fc94f144e8e7ad719c Mon Sep 17 00:00:00 2001 From: Jerry Zhao Date: Fri, 7 Oct 2022 16:36:44 -0700 Subject: [PATCH] [ci skip] Fix fd command FD should only find regular files in this context, and use the -e flag --- common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mk b/common.mk index 02fd00d9..42be42b7 100644 --- a/common.mk +++ b/common.mk @@ -68,7 +68,7 @@ include $(base_dir)/tools/torture.mk ifeq ($(shell which fd 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)) + lookup_srcs = $(shell fd -L -t f -e $(2) . $(1)) endif SOURCE_DIRS = $(addprefix $(base_dir)/,generators sims/firesim/sim tools/barstools fpga/fpga-shells fpga/src)