Use nproc instead of hardcoded 10 for build parallelism
This commit is contained in:
parent
7f9467c13d
commit
54110fed41
7 changed files with 7 additions and 7 deletions
|
@ -11,7 +11,7 @@ curl https://ftp.gnu.org/gnu/binutils/binutils-$VERSION.tar.bz2 | tar xfj -
|
|||
mkdir binutils-build
|
||||
cd binutils-build
|
||||
hide_output ../binutils-$VERSION/configure --prefix=/rustroot
|
||||
hide_output make -j10
|
||||
hide_output make -j$(nproc)
|
||||
hide_output make install
|
||||
|
||||
cd ..
|
||||
|
|
|
@ -30,7 +30,7 @@ hide_output \
|
|||
-DLLVM_ENABLE_PROJECTS="clang;lld" \
|
||||
-DC_INCLUDE_DIRS="$INC"
|
||||
|
||||
hide_output make -j10
|
||||
hide_output make -j$(nproc)
|
||||
hide_output make install
|
||||
|
||||
cd ../..
|
||||
|
|
|
@ -9,7 +9,7 @@ curl -L https://github.com/Kitware/CMake/releases/download/v$CMAKE/cmake-$CMAKE.
|
|||
mkdir cmake-build
|
||||
cd cmake-build
|
||||
hide_output ../cmake-$CMAKE/configure --prefix=/rustroot
|
||||
hide_output make -j10
|
||||
hide_output make -j$(nproc)
|
||||
hide_output make install
|
||||
|
||||
cd ..
|
||||
|
|
|
@ -30,7 +30,7 @@ hide_output ../curl-$VERSION/configure \
|
|||
--disable-rtsp \
|
||||
--disable-ldaps \
|
||||
--disable-ldap
|
||||
hide_output make -j10
|
||||
hide_output make -j$(nproc)
|
||||
hide_output make install
|
||||
|
||||
cd ..
|
||||
|
|
|
@ -32,7 +32,7 @@ hide_output ../gcc-$GCC/configure \
|
|||
--prefix=/rustroot \
|
||||
--enable-languages=c,c++ \
|
||||
--disable-gnu-unique-object
|
||||
hide_output make -j10
|
||||
hide_output make -j$(nproc)
|
||||
hide_output make install
|
||||
ln -s gcc /rustroot/bin/cc
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ curl $URL | tar xzf -
|
|||
|
||||
cd openssl-$VERSION
|
||||
hide_output ./config --prefix=/rustroot shared -fPIC
|
||||
hide_output make -j10
|
||||
hide_output make -j$(nproc)
|
||||
hide_output make install
|
||||
cd ..
|
||||
rm -rf openssl-$VERSION
|
||||
|
|
|
@ -14,7 +14,7 @@ cd python-build
|
|||
# than that fairly normal.
|
||||
CFLAGS='-I /rustroot/include' LDFLAGS='-L /rustroot/lib -L /rustroot/lib64' \
|
||||
hide_output ../Python-$VERSION/configure --prefix=/rustroot
|
||||
hide_output make -j10
|
||||
hide_output make -j$(nproc)
|
||||
hide_output make install
|
||||
|
||||
cd ..
|
||||
|
|
Loading…
Add table
Reference in a new issue