Skip to content

Commit

Permalink
reduce peak disk usage by cleaning frequently
Browse files Browse the repository at this point in the history
  • Loading branch information
ArsenArsen committed Feb 6, 2024
1 parent 99abe37 commit d245241
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build-many-tools.bash
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,11 @@ for target in "${targets[@]}"; do (
make -O -j"${PARALLELISM}"
make -O -j"${PARALLELISM}" install
rm -rf "${sysroot}"/*
); done

# Clean up build dirs
for target in "${targets[@]}"; do
# Clean up
cd ..
rm -rf "${target}"
done
); done

# Clean up source dirs
rm -rf gcc binutils tool-src tool-checksums *.tar* config.{sub,guess} \
Expand Down

0 comments on commit d245241

Please sign in to comment.