From d3e374fe572aa0eab133dd24ab28f0364143bb3b Mon Sep 17 00:00:00 2001 From: tangxifan Date: Thu, 6 Oct 2022 17:04:30 -0700 Subject: [PATCH] [script] debugging make format --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ceaa81a7a..e48126813 100644 --- a/Makefile +++ b/Makefile @@ -70,7 +70,10 @@ all: checkout compile format-cpp: # Format all the C/C++ files under this project, excluding submodules - find libs openfpga -iname *.cpp -iname *.hpp -iname *.c -iname *.h | xargs ${CLANG_FORMAT_EXEC} --style=file -i + for f in `find libs openfpga -iname *.cpp -iname *.hpp -iname *.c -iname *.h`; \ + do \ + ${CLANG_FORMAT_EXEC} --style=file -i $${f} || exit 1; \ + done clean: # Remove current build results