Opened 14 years ago

Closed 13 years ago

Last modified 11 years ago

#12280 closed enhancement (fixed)

RFE: buildmakejobs setting (simultaneous make)

Reported by: afb@… Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 1.6
Component: base Version: 1.6.0
Keywords: Cc:


When building with Make and multiple CPUs (or slow Makefile targets), sometimes things go a lot faster when using multiple commands at once with "make -j2". Support for that MacPorts is good.

Note that setting the number of jobs higher than e.g. "# CPU + 1" is a good way of using too much memory and making the build slow to a crawl due to lack of available memory and swapping instead.

Attachments (1)

macports-makejobs.patch (2.9 KB) - added by afb@… 14 years ago.

Download all attachments as: .zip

Change History (8)

Changed 14 years ago by afb@…

Attachment: macports-makejobs.patch added


comment:1 Changed 14 years ago by afb@…

patch adds the "buildmakejobs" setting, and the port variables "" and "build.max_jobs".

Where would override the users preferences (probably not recommended practice), and build.max_jobs can be used if the Port has a flawed Makefile that chokes on high -j...

comment:2 Changed 14 years ago by afb@…

Maybe toast the "build.max_jobs" altogether, and only use a portlocal " 1" to override ?

comment:3 Changed 14 years ago by afb@…

Milestone: Needs developer review

comment:4 Changed 14 years ago by jmpp@…

Milestone: Needs developer reviewMacPorts base bugs

Milestone Needs developer review deleted

comment:5 Changed 14 years ago by nox@…

Milestone: MacPorts base bugsMacPorts base enhancements
Priority: ExpectedNormal
Summary: buildmakejobs setting (simultaneous make)RFE: buildmakejobs setting (simultaneous make)

comment:6 Changed 13 years ago by afb@…

Resolution: fixed
Status: newclosed

Applied in r28634, with "max_jobs" toasted and "nice" added.

comment:7 Changed 11 years ago by jmroot (Joshua Root)

Milestone: MacPorts FutureMacPorts 1.6
Note: See TracTickets for help on using tickets.