mk/compile_commands.json: fix hanging sed, if no json files are found (2nd)
@@ -821,7 +821,7 @@ clang:
.PHONY: compile_commands.json
compile_commands.json:
@rm -f $@
- @find $(BUILD) -name "*.o.json" > /dev/null
+ @find $(BUILD) -name "*.o.json" | grep . > /dev/null
@sed -e '1s/^/[/' -e '$$s/,$$/]/' \
$(shell find $(BUILD) -name "*.o.json") > $@
