GNOME Bugzilla – Bug 654686
parallel make by default
Last modified: 2011-11-10 19:06:15 UTC
The current jhbuild approach of having "makeargs" be empty by default, but people can set it manually is an evil trap, because it works for *some* modules well (like glib), but will fail on others (like nss). The win is large enough from parallel make on nontrivial modules that we really want to push modules to support it. However, we need to support modules that for whatever historical reasons don't do it. We have two options: * Add another moduleset XML attribute supports-parallel-build, just like supports-non-srcdir-builds. * Auto-detect this by looking for .NOTPARALLEL in the toplevel Makefile, as I suggest in http://people.gnome.org/~walters/docs/build-api.txt
Created attachment 192913 [details] [review] Do parallel builds by default Add a new "jobs" config option which specifies what to give to "make -jX". Also annotate nss as broken in this respect.
cpu_count in multiprocessing supports multiple platforms. It could raise a NotImplementedError (so catch and assume 1 cpu). Requires Python 2.6+.
Created attachment 197818 [details] [review] Do parallel builds by default Use multiprocessing if available
Created attachment 198792 [details] [review] Do parallel builds by default Rebased to master
Attachment 198792 [details] pushed as d75e72a - Do parallel builds by default