Skip to content

Commit 54110fe

Browse files
committed
Use nproc instead of hardcoded 10 for build parallelism
1 parent 7f9467c commit 54110fe

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/ci/docker/host-x86_64/dist-x86_64-linux/build-binutils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ curl https://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.bz2 | tar xfj -
1111
mkdir binutils-build
1212
cd binutils-build
1313
hide_output ../binutils-$VERSION/configure --prefix=/rustroot
14-
hide_output make -j10
14+
hide_output make -j$(nproc)
1515
hide_output make install
1616

1717
cd ..

src/ci/docker/host-x86_64/dist-x86_64-linux/build-clang.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ hide_output \
3030
-DLLVM_ENABLE_PROJECTS="clang;lld" \
3131
-DC_INCLUDE_DIRS="$INC"
3232

33-
hide_output make -j10
33+
hide_output make -j$(nproc)
3434
hide_output make install
3535

3636
cd ../..

src/ci/docker/host-x86_64/dist-x86_64-linux/build-cmake.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE/cmake-$CMAKE.
99
mkdir cmake-build
1010
cd cmake-build
1111
hide_output ../cmake-$CMAKE/configure --prefix=/rustroot
12-
hide_output make -j10
12+
hide_output make -j$(nproc)
1313
hide_output make install
1414

1515
cd ..

src/ci/docker/host-x86_64/dist-x86_64-linux/build-curl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ hide_output ../curl-$VERSION/configure \
3030
--disable-rtsp \
3131
--disable-ldaps \
3232
--disable-ldap
33-
hide_output make -j10
33+
hide_output make -j$(nproc)
3434
hide_output make install
3535

3636
cd ..

src/ci/docker/host-x86_64/dist-x86_64-linux/build-gcc.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ hide_output ../gcc-$GCC/configure \
3232
--prefix=/rustroot \
3333
--enable-languages=c,c++ \
3434
--disable-gnu-unique-object
35-
hide_output make -j10
35+
hide_output make -j$(nproc)
3636
hide_output make install
3737
ln -s gcc /rustroot/bin/cc
3838

src/ci/docker/host-x86_64/dist-x86_64-linux/build-openssl.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ curl $URL | tar xzf -
1414

1515
cd openssl-$VERSION
1616
hide_output ./config --prefix=/rustroot shared -fPIC
17-
hide_output make -j10
17+
hide_output make -j$(nproc)
1818
hide_output make install
1919
cd ..
2020
rm -rf openssl-$VERSION

src/ci/docker/host-x86_64/dist-x86_64-linux/build-python.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cd python-build
1414
# than that fairly normal.
1515
CFLAGS='-I /rustroot/include' LDFLAGS='-L /rustroot/lib -L /rustroot/lib64' \
1616
hide_output ../Python-$VERSION/configure --prefix=/rustroot
17-
hide_output make -j10
17+
hide_output make -j$(nproc)
1818
hide_output make install
1919

2020
cd ..

0 commit comments

Comments
 (0)