Skip to content

Commit

Permalink
remove ocaml-processor dependancy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Gibb committed Sep 27, 2022
1 parent 250f3c6 commit 886b28f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dune
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@
(mode fallback)
(action
(bash
"CORES=`ocaml-processor-dump | grep '^core_count' | cut -d ' ' -f2`; sed \"s/\%{jobs}%/$CORES/g\" %{target}.in > %{target}")))
"CORES=`(which nproc > /dev/null 2>&1 && nproc) || sysctl -n hw.ncpu 2> /dev/null || echo 1`; sed \"s/\%{jobs}%/$CORES/g\" %{target}.in > %{target}")))

0 comments on commit 886b28f

Please sign in to comment.