diff options
author | Ben Sima <ben@bsima.me> | 2024-03-28 21:56:18 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2024-04-01 12:26:59 -0400 |
commit | 4e42fb581e67693ceb9f935f8e918c9b910ac98e (patch) | |
tree | 4e7fa8f88e449dc4d3959c8d895ebd38d159b731 /Biz/Ide | |
parent | d56f05863d789423ff785cec654155d8495373a9 (diff) |
Add --jobs and --cpus to bild
By default, nix will use the maximum amount of cores available to the machine.
On my machine it was maxxing out the CPUs and then actually running out of RAM
when compiling JavaScriptCore and literally shutting down my machine. So, I need
to be able to control the concurrency and parallelism.
The default settings I chose should reserve 4 cores for the user.
I also changed --json to --plan because -j makes more sense for --jobs, as its
used this way in other tools like make and nix-build.
Diffstat (limited to 'Biz/Ide')
-rwxr-xr-x | Biz/Ide/repl.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Biz/Ide/repl.bash b/Biz/Ide/repl.bash index fcc7eba..a14b0b8 100755 --- a/Biz/Ide/repl.bash +++ b/Biz/Ide/repl.bash @@ -25,7 +25,7 @@ fi shift fi targets=${@:?} - json=$(bild --json ${targets[@]}) + json=$(bild --plan ${targets[@]}) langdeps=$(jq --raw-output '.[].langdeps | join(" ")' <<< $json) sysdeps=$(jq --raw-output '.[].sysdeps | join(" ")' <<< $json) rundeps=$(jq --raw-output '.[].rundeps | join(" ")' <<< $json) |