This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
(Toplevel patch) Let the top level run in parallel.
- From: Nathanael Nerode <neroden at twcny dot rr dot com>
- To: gcc-patches at gcc dot gnu dot org, gdb-patches at sources dot redhat dot com, binutils at sources dot redhat dot com, dj at redhat dot com
- Date: Tue, 25 Feb 2003 16:22:19 -0500
- Subject: (Toplevel patch) Let the top level run in parallel.
It should be safe to run the top level in parallel thanks to the
serialization dependencies.
Tested on i686-pc-linux-gnu (on a single-processor machine, I'm afraid) via
'make -j 10 bootstrap' and 'make -j 10 all', just for the hell of it.
Both worked as expected. I really think this is safe.
* Makefile.tpl: Do run the top level in parallel.
* Makefile.in: Regenerate.
--- Makefile.tpl.old 2003-02-25 15:39:04.000000000 -0500
+++ Makefile.tpl 2003-02-25 16:15:16.000000000 -0500
@@ -728,7 +726,7 @@
.PHONY: check do-check
check:
- $(MAKE) do-check NOTPARALLEL=parallel-ok
+ $(MAKE) do-check
# Only include modules actually being configured and built.
do-check: @check_host_modules@ \
@@ -1259,7 +1257,7 @@
.PHONY: check-c++
check-c++:
- $(MAKE) check-target-libstdc++-v3 check-gcc-c++ NOTPARALLEL=parallel-ok
+ $(MAKE) check-target-libstdc++-v3 check-gcc-c++
.PHONY: install-gcc maybe-install-gcc
maybe-install-gcc:
@@ -1453,11 +1451,3 @@
.NOEXPORT:
MAKEOVERRIDES=
-
-# Tell GNU make 3.79 not to run the top level in parallel. This
-# prevents contention for $builddir/$target/config.cache, as well
-# as minimizing scatter in file system caches.
-NOTPARALLEL = .NOTPARALLEL
-$(NOTPARALLEL):
-
-# end of Makefile.in