Skip to content

Commit

Permalink
Parallel make
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Oct 6, 2019
1 parent 344198f commit 17ccbaf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docker/build_scripts/build_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ function do_cpython_build {
local prefix="/opt/_internal/cpython-${py_ver}"
mkdir -p ${prefix}/lib
./configure --prefix=${prefix} --disable-shared > /dev/null
make -j2 > /dev/null
make install > /dev/null
make -j$(nproc) > /dev/null
make -j$(nproc) install > /dev/null
popd
rm -rf Python-$py_ver
# Some python's install as bin/python3. Make them available as
Expand Down Expand Up @@ -124,15 +124,15 @@ function build_git {
fetch_source v${git_fname}.tar.gz ${GIT_DOWNLOAD_URL}
check_sha256sum v${git_fname}.tar.gz ${git_sha256}
tar -xzf v${git_fname}.tar.gz
(cd git-${git_fname} && make install prefix=/usr/local NO_GETTEXT=1 NO_TCLTK=1 > /dev/null)
(cd git-${git_fname} && make -j$(nproc) install prefix=/usr/local NO_GETTEXT=1 NO_TCLTK=1 > /dev/null)
rm -rf git-${git_fname} v${git_fname}.tar.gz
}


function do_standard_install {
./configure "$@" > /dev/null
make > /dev/null
make install > /dev/null
make -j$(nproc) > /dev/null
make -j$(nproc) install > /dev/null
}


Expand Down

0 comments on commit 17ccbaf

Please sign in to comment.