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
19
19
cat ../../patches/binutils-gas.patch | patch -p0 || { exit 1; }
20
20
21
21
# # Determine the maximum number of processes that Make can work with.
22
- # # MinGW's Make doesn't work properly with multi-core processors.
23
22
OSVER=$( uname)
24
23
if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
25
- PROC_NR=2
24
+ PROC_NR=$NUMBER_OF_PROCESSORS
26
25
elif [ ${OSVER: 0: 6} == Darwin ]; then
27
26
PROC_NR=$( sysctl -n hw.ncpu)
28
27
else
29
28
PROC_NR=$( nproc)
30
29
fi
31
30
31
+ echo " Building with $PROC_NR jobs"
32
+
32
33
# # For each target...
33
34
for TARGET in " ee" " iop" " dvp" ; do
34
35
# # Create and enter the build directory.
Original file line number Diff line number Diff line change 26
26
fi
27
27
28
28
# # Determine the maximum number of processes that Make can work with.
29
- # # MinGW's Make doesn't work properly with multi-core processors.
30
29
if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
31
- PROC_NR=2
30
+ PROC_NR=$NUMBER_OF_PROCESSORS
32
31
elif [ ${OSVER: 0: 6} == Darwin ]; then
33
32
PROC_NR=$( sysctl -n hw.ncpu)
34
33
else
35
34
PROC_NR=$( nproc)
36
35
fi
37
36
37
+ echo " Building with $PROC_NR jobs"
38
+
38
39
# # For each target...
39
40
for TARGET in " ee" " iop" ; do
40
41
# # 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
17
17
fi
18
18
19
19
# # Determine the maximum number of processes that Make can work with.
20
- # # MinGW's Make doesn't work properly with multi-core processors.
21
20
OSVER=$( uname)
22
21
if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
23
- PROC_NR=2
22
+ PROC_NR=$NUMBER_OF_PROCESSORS
24
23
elif [ ${OSVER: 0: 6} == Darwin ]; then
25
24
PROC_NR=$( sysctl -n hw.ncpu)
26
25
else
Original file line number Diff line number Diff line change 25
25
TARG_XTRA_OPTS=" --enable-cxx-flags=-G0"
26
26
fi
27
27
28
- # # OS Windows doesn't properly work with multi-core processors
28
+ # # Determine the maximum number of processes that Make can work with.
29
29
if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
30
- PROC_NR=2
30
+ PROC_NR=$NUMBER_OF_PROCESSORS
31
31
elif [ ${OSVER: 0: 6} == Darwin ]; then
32
32
PROC_NR=$( sysctl -n hw.ncpu)
33
33
else
34
34
PROC_NR=$( nproc)
35
35
fi
36
36
37
+ echo " Building with $PROC_NR jobs"
38
+
37
39
TARGET=" ee"
38
40
# # Create and enter the build directory.
39
41
mkdir build-$TARGET -stage2 && cd build-$TARGET -stage2 || { exit 1; }
Original file line number Diff line number Diff line change 15
15
fi
16
16
17
17
# # Determine the maximum number of processes that Make can work with.
18
- # # MinGW's Make doesn't work properly with multi-core processors.
19
18
OSVER=$( uname)
20
19
if [ ${OSVER: 0: 10} == MINGW32_NT ]; then
21
- PROC_NR=2
20
+ PROC_NR=$NUMBER_OF_PROCESSORS
22
21
elif [ ${OSVER: 0: 6} == Darwin ]; then
23
22
PROC_NR=$( sysctl -n hw.ncpu)
24
23
else
You can’t perform that action at this time.
0 commit comments