From d42522eec5d89e9c62484182a402d90c2d42ca47 Mon Sep 17 00:00:00 2001 From: minkyu_kim Date: Mon, 14 Oct 2024 15:41:11 +0900 Subject: [PATCH] build: fix make errors that occur in Makefile fix make errors that occur in coverage-clean case and coverage-test in Makefile PR-URL: https://github.com/nodejs/node/pull/55287 Reviewed-By: LiviaMedeiros Reviewed-By: Luigi Pinca --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index b8d29cdae2acb6..7f3f09ecbcbb82 100644 --- a/Makefile +++ b/Makefile @@ -243,7 +243,7 @@ coverage-clean: ## Remove coverage artifacts. $(RM) -r coverage/tmp @if [ -d "out/Release/obj.target" ]; then \ $(FIND) out/$(BUILDTYPE)/obj.target \( -name "*.gcda" -o -name "*.gcno" \) \ - -type f -exec $(RM) {};\ + -type f | xargs $(RM); \ fi .PHONY: coverage @@ -269,7 +269,7 @@ coverage-build-js: ## Build JavaScript coverage files. .PHONY: coverage-test coverage-test: coverage-build ## Run the tests and generate a coverage report. @if [ -d "out/Release/obj.target" ]; then \ - $(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {}; \ + $(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f | xargs $(RM); \ fi -NODE_V8_COVERAGE=coverage/tmp \ TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS)