Skip to content

Commit 112f6d6

Browse files
committed
please.sh: work around msys2-runtime failure during parallel build
For some reason, it seems that the parallel build of the MSYS2 runtime is currently broken (it complains about missing files). Locally the build succeeds when passing `-j1`, so let's try that. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ca50867 commit 112f6d6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

please.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -737,8 +737,10 @@ pkg_build () {
737737
;;
738738
MSYS)
739739
require msys2-devel binutils
740+
opt_j=-j5
740741
if test msys2-runtime = "$package"
741742
then
743+
opt_j=-j1
742744
require mingw-w64-cross-crt-git mingw-w64-cross-gcc
743745
test ! -d msys2-runtime ||
744746
git -C msys2-runtime fetch ||
@@ -775,7 +777,7 @@ pkg_build () {
775777
export PATH=/usr/bin:/opt/bin:$PATH &&
776778
unset ORIGINAL_PATH &&
777779
. /etc/profile &&
778-
MAKEFLAGS=-j5 makepkg -s --noconfirm \
780+
MAKEFLAGS='"$opt_j"' makepkg -s --noconfirm \
779781
'"$extra_makepkg_opts"' &&
780782
makepkg --allsource '"$extra_makepkg_opts" ||
781783
die "%s: could not build\n" "$sdk$pkgpath"

0 commit comments

Comments
 (0)