Skip to content

Commit

Permalink
Changed make fmt to run in parallel (#3422)
Browse files Browse the repository at this point in the history
changed make fmt to run in parallel
  • Loading branch information
jvanburen authored Jan 3, 2025
1 parent 4de5a72 commit a273a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ promote:

.PHONY: fmt
fmt:
ocamlformat -i $$(find . \( -name "*.ml" -or -name "*.mli" \))
find . \( -name "*.ml" -or -name "*.mli" \) | xargs -P $$(nproc 2>/dev/null || echo 1) -n 20 ocamlformat -i

.PHONY: check-fmt
check-fmt:
Expand Down

0 comments on commit a273a33

Please sign in to comment.