Bug 1426283 - Use nproc for the number of parallel jobs to run when building gcc. r=gps
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 20 Dec 2017 14:39:26 +0900
changeset 448821 dd70ec8799fff506944df6c1346617da85dc6383
parent 448820 7c5a3709868be88aabfa48c7a54d4a122c35340c
child 448822 46e5fc9628c836db4236cc9c4e6481bfb547e40a
push id8527
push userCallek@gmail.com
push dateThu, 11 Jan 2018 21:05:50 +0000
treeherdermozilla-beta@95342d212a7a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgps
bugs1426283
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1426283 - Use nproc for the number of parallel jobs to run when building gcc. r=gps While in the vicinity.
build/unix/build-gcc/build-gcc.sh
--- a/build/unix/build-gcc/build-gcc.sh
+++ b/build/unix/build-gcc/build-gcc.sh
@@ -1,14 +1,14 @@
 #!/bin/bash
 
 set -e
 set -x
 
-make_flags='-j12'
+make_flags="-j$(nproc)"
 
 . $data_dir/download-tools.sh
 
 prepare() {
   pushd $root_dir
   download_and_check ftp://ftp.gnu.org/gnu/binutils binutils-$binutils_version.tar.$binutils_ext.sig
   tar xaf $TMPDIR/binutils-$binutils_version.tar.$binutils_ext