Skip to content

Commit b7221e7

Browse files
committed
build: don't clean obj.target directory if it doesn't exist
This can happen to ninja builds, which would then throw an error instead of being a noop if the command is executed.
1 parent f0134fa commit b7221e7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ coverage-build-js:
266266

267267
.PHONY: coverage-test
268268
coverage-test: coverage-build
269-
$(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {} \;
269+
@if [ -d "out/Release/obj.target" ]; then \
270+
$(FIND) out/$(BUILDTYPE)/obj.target -name "*.gcda" -type f -exec $(RM) {}; \
271+
fi
270272
-NODE_V8_COVERAGE=coverage/tmp \
271273
TEST_CI_ARGS="$(TEST_CI_ARGS) --type=coverage" $(MAKE) $(COVTESTS)
272274
$(MAKE) coverage-report-js

0 commit comments

Comments
 (0)