提交 54110fed 编写于 作者: N Nikita Popov

Use nproc instead of hardcoded 10 for build parallelism

上级 7f9467c1
......@@ -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 ..
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册