File tree Expand file tree Collapse file tree 5 files changed +12
-10
lines changed
Expand file tree Collapse file tree 5 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,17 @@ cat ../../patches/binutils-$BINUTILS_VERSION-disable-makeinfo-when-texinfo-is-to
1919cat ../../patches/binutils-gas.patch | patch -p0 || { exit 1; }
2020
2121# # Determine the maximum number of processes that Make can work with.
22- # # MinGW's Make doesn't work properly with multi-core processors.
2322OSVER=$( uname)
2423if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
25- PROC_NR=2
24+ PROC_NR=$NUMBER_OF_PROCESSORS
2625elif [ ${OSVER: 0: 6} == Darwin ]; then
2726 PROC_NR=$( sysctl -n hw.ncpu)
2827else
2928 PROC_NR=$( nproc)
3029fi
3130
31+ echo " Building with $PROC_NR jobs"
32+
3233# # For each target...
3334for TARGET in " ee" " iop" " dvp" ; do
3435 # # Create and enter the build directory.
Original file line number Diff line number Diff line change 2626fi
2727
2828# # Determine the maximum number of processes that Make can work with.
29- # # MinGW's Make doesn't work properly with multi-core processors.
3029if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
31- PROC_NR=2
30+ PROC_NR=$NUMBER_OF_PROCESSORS
3231elif [ ${OSVER: 0: 6} == Darwin ]; then
3332 PROC_NR=$( sysctl -n hw.ncpu)
3433else
3534 PROC_NR=$( nproc)
3635fi
3736
37+ echo " Building with $PROC_NR jobs"
38+
3839# # For each target...
3940for TARGET in " ee" " iop" ; do
4041 # # Create and enter the build directory.
Original file line number Diff line number Diff line change @@ -17,10 +17,9 @@ if [ -e ../../patches/newlib-$NEWLIB_VERSION-PS2.patch ]; then
1717fi
1818
1919# # Determine the maximum number of processes that Make can work with.
20- # # MinGW's Make doesn't work properly with multi-core processors.
2120OSVER=$( uname)
2221if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
23- PROC_NR=2
22+ PROC_NR=$NUMBER_OF_PROCESSORS
2423elif [ ${OSVER: 0: 6} == Darwin ]; then
2524 PROC_NR=$( sysctl -n hw.ncpu)
2625else
Original file line number Diff line number Diff line change 2525 TARG_XTRA_OPTS=" --enable-cxx-flags=-G0"
2626fi
2727
28- # # OS Windows doesn't properly work with multi-core processors
28+ # # Determine the maximum number of processes that Make can work with.
2929if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
30- PROC_NR=2
30+ PROC_NR=$NUMBER_OF_PROCESSORS
3131elif [ ${OSVER: 0: 6} == Darwin ]; then
3232 PROC_NR=$( sysctl -n hw.ncpu)
3333else
3434 PROC_NR=$( nproc)
3535fi
3636
37+ echo " Building with $PROC_NR jobs"
38+
3739TARGET=" ee"
3840# # Create and enter the build directory.
3941mkdir build-$TARGET -stage2 && cd build-$TARGET -stage2 || { exit 1; }
Original file line number Diff line number Diff line change 1515fi
1616
1717# # Determine the maximum number of processes that Make can work with.
18- # # MinGW's Make doesn't work properly with multi-core processors.
1918OSVER=$( uname)
2019if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
21- PROC_NR=2
20+ PROC_NR=$NUMBER_OF_PROCESSORS
2221elif [ ${OSVER: 0: 6} == Darwin ]; then
2322 PROC_NR=$( sysctl -n hw.ncpu)
2423else
You can’t perform that action at this time.
0 commit comments