This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Reenable parallel build
- From: Arnaud Charlet <charlet at adacore dot com>
- To: Laurent GUERBY <laurent at guerby dot net>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 31 Mar 2008 09:54:35 +0200
- Subject: Re: [Ada] Reenable parallel build
- References: <1206801950.15628.31.camel@localhost>
> Is there any reason why parallel build is disabled in
> gcc/ada/Makefile.in? It seems to come from an old commit:
The old commit did not fully document the reasons indeed, but I did
actually recently investigate where this comment came from, and it is
actually still relevant: the gnattools target is not safe wrt parallel
builds (and there may be also an issue if gnatlib and gnattools are
run in parallel), so your patch is not OK, unfortunately.
The comment could be updated with something like:
# Tell GNU make not to run this directory in parallel when building gnattools
# or gnatlib, since not all of the required dependencies are present for
# these targets.
.NOTPARALLEL:
I have some local changes (not fully tested, and not committed anywhere)
that might slightly improve things in this area (by running a single
gnatmake command to build all gnattools to avoid having multiple gnatmake
run in parallel, generating the same objects), but still need some refinements
and testing.
Arno