Skip to content

Commit

Permalink
limit zstd to 1 thread to avoid OOM errors on 32-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyd2019 committed May 7, 2024
1 parent 98de0a9 commit 9150e27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion make-msys2-installer
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ create_archives() {
xz --test "${_thisdir}/msys2-base-${_arch}-${_date}.tar.xz"

echo "[Creating zstd archive...]"
zstd -T0 -22 --ultra --force "${_thisdir}/msys2-base-${_arch}-${_date}.tar" -o "${_thisdir}/msys2-base-${_arch}-${_date}.tar.zst"
zstd -T1 -22 --ultra --force "${_thisdir}/msys2-base-${_arch}-${_date}.tar" -o "${_thisdir}/msys2-base-${_arch}-${_date}.tar.zst"
zstd --test "${_thisdir}/msys2-base-${_arch}-${_date}.tar.zst"

rm "${_thisdir}/msys2-base-${_arch}-${_date}.tar"
Expand Down

0 comments on commit 9150e27

Please sign in to comment.