diff --git a/msys2/ps/autobuild.sh b/msys2/ps/autobuild.sh index ce6775fd1..fdf53729e 100644 --- a/msys2/ps/autobuild.sh +++ b/msys2/ps/autobuild.sh @@ -4,6 +4,7 @@ copyDir=/builds buildDir=/tmp mingwDir=/mingw64 arch=64 +jobs=$(nproc) pacman -Q p7zip 1> /dev/null if [[ $? != 0 ]]; then @@ -19,8 +20,14 @@ for i in $( ls -d */ ); do hash=$(git rev-parse HEAD) date=$(date +%Y%m%d) if ! ls $copyDir/${i%%/}-$arch/*-$hash.7z 1> /dev/null 2>&1; then + + if [ ! -f "rdv40.txt" ]; then + jobs=1 + fi + make clean - make all + make all -j$jobs + if [ $? -eq 0 ]; then rm -rf $buildDir/${i%%/}/* mkdir -p $copyDir/${i%%/}-$arch/