mirror of git://gcc.gnu.org/git/gcc.git
gcc_release (build_sources): Use getconf to get at the number of cores in the system and pass -jN to gcc_build.
2018-01-25 Richard Biener <rguenther@suse.de> * gcc_release (build_sources): Use getconf to get at the number of cores in the system and pass -jN to gcc_build. From-SVN: r257045
This commit is contained in:
parent
b254c1a232
commit
8819c9199a
|
|
@ -1,3 +1,8 @@
|
||||||
|
2018-01-25 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
* gcc_release (build_sources): Use getconf to get at the number
|
||||||
|
of cores in the system and pass -jN to gcc_build.
|
||||||
|
|
||||||
2017-10-10 Jakub Jelinek <jakub@redhat.com>
|
2017-10-10 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* update_version_svn: Ignore the GCC 5 branch.
|
* update_version_svn: Ignore the GCC 5 branch.
|
||||||
|
|
|
||||||
|
|
@ -209,8 +209,16 @@ EOF
|
||||||
# on at least one platform.
|
# on at least one platform.
|
||||||
inform "Building compiler"
|
inform "Building compiler"
|
||||||
OBJECT_DIRECTORY=../objdir
|
OBJECT_DIRECTORY=../objdir
|
||||||
|
num_cpus=1
|
||||||
|
if type -p getconf 2>/dev/null; then
|
||||||
|
num_cpus=`getconf _NPROCESSORS_ONLN 2>/dev/null`
|
||||||
|
case "$num_cpus" in
|
||||||
|
'' | 0* | *[!0-9]*) num_cpus=1;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
contrib/gcc_build -d ${SOURCE_DIRECTORY} -o ${OBJECT_DIRECTORY} \
|
contrib/gcc_build -d ${SOURCE_DIRECTORY} -o ${OBJECT_DIRECTORY} \
|
||||||
-c "--enable-generated-files-in-srcdir --disable-multilib" build || \
|
-c "--enable-generated-files-in-srcdir --disable-multilib" \
|
||||||
|
-m "-j$num_cpus" build || \
|
||||||
error "Could not rebuild GCC"
|
error "Could not rebuild GCC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue