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 397066 dd70ec8799fff506944df6c1346617da85dc6383
parent 397065 7c5a3709868be88aabfa48c7a54d4a122c35340c
child 397067 46e5fc9628c836db4236cc9c4e6481bfb547e40a
push id33123
push userncsoregi@mozilla.com
push dateThu, 21 Dec 2017 10:00:47 +0000
treeherdermozilla-central@06a19fbe2581 [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