patchmake - Patches: patch #6905, add .AUTOPARALLEL flag


You are not allowed to post comments on this tracker with your current authentification level.

patch #6905: add .AUTOPARALLEL flag

Submitted by:  Colin Walters <cgwalters>
Submitted on:  Sun Aug 30 22:31:39 2009  
Category: NonePriority: 5 - Normal
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Fixed Release: None

Mon Sep 14 07:17:27 2009, comment #2:

Yes, that would be a more flexible solution. This way N in -jN can come from all kinds of sources (e.g., from user's .profile).

Boris Kolpackov <bosk>
Project Member
Sat Sep 12 22:37:48 2009, comment #1:

What I would prefer to see is the ability to enable parallelism by adding -jN to the MAKEFLAGS variable, inside the makefile. That gives the same feature, while not having to introduce any new constructs. It's also, arguably, the first thing someone will try if they want to do this.


Paul D. Smith <psmith>
Project Administrator
Sun Aug 30 22:31:39 2009, original submission:

One problem I have hit repeatedly in community-maintained free software projects is regressions in parallel building, both from the maintainers (who may not be explicitly specifying -jX) or from new contributors (who may not even know about -jX or whether the project supports parallel builds).

Experience has proven to me over and over again, that unless something is the default, it will constantly be broken.

Now, most large-scale software projects with resources (time/money) likely have maintained autobuilders which very quickly catch regressions in parallel building. But the smaller-scale projects won't, and even for the larger projects, it's useful to immediately catch regressions.

So what this patch does is add a .AUTOPARALLEL flag (in the spirit of .NOPARALLEL) which when seen automatically enables parallelism. I chose a default of 8 jobs which feels reasonable; someone can later come by and add some heuristics based on system load, CPU cores, whatever.

Colin Walters <cgwalters>


Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by bosk (Posted a comment)
  • -unavailable- added by psmith (Posted a comment)
  • -unavailable- added by cgwalters (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Aug 30 22:31:39 2009cgwaltersAttached File-=>Added gnu-make-autoparallel.patch, #18659

    Back to the top

    Powered by Savane 3.1-cleanup1