mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
BuildIt: Allow specifying MAKEJOBS rather than forcing to nprocs
This commit is contained in:
parent
bfd94dbf54
commit
f9515d56e7
Notes:
sideshowbarker
2024-07-19 14:08:21 +09:00
Author: https://github.com/rburchell Commit: https://github.com/SerenityOS/serenity/commit/f9515d56e72 Pull-request: https://github.com/SerenityOS/serenity/pull/37
1 changed files with 6 additions and 2 deletions
|
@ -63,6 +63,10 @@ mkdir -p $PREFIX
|
|||
mkdir -p "$DIR/Build/binutils"
|
||||
mkdir -p "$DIR/Build/gcc"
|
||||
|
||||
if [ -z "$MAKEJOBS" ]; then
|
||||
MAKEJOBS=$(nproc)
|
||||
fi
|
||||
|
||||
pushd "$DIR/Build/"
|
||||
unset PKG_CONFIG_LIBDIR # Just in case
|
||||
|
||||
|
@ -71,7 +75,7 @@ pushd "$DIR/Build/"
|
|||
--target=$TARGET \
|
||||
--with-sysroot=$SYSROOT \
|
||||
--disable-nls || exit 1
|
||||
make -j $(nproc) || exit 1
|
||||
make -j $MAKEJOBS || exit 1
|
||||
make install || exit 1
|
||||
popd
|
||||
|
||||
|
@ -84,7 +88,7 @@ pushd "$DIR/Build/"
|
|||
--enable-languages=c,c++ || exit 1
|
||||
|
||||
echo "XXX build gcc and libgcc"
|
||||
make -j $(nproc) all-gcc all-target-libgcc || exit 1
|
||||
make -j $MAKEJOBS all-gcc all-target-libgcc || exit 1
|
||||
echo "XXX install gcc and libgcc"
|
||||
make install-gcc install-target-libgcc || exit 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue