[30739] trunk/base/src/port1.0/portbuild.tcl
source_changes at macosforge.org
source_changes at macosforge.org
Mon Nov 5 13:45:28 PST 2007
Revision: 30739
http://trac.macosforge.org/projects/macports/changeset/30739
Author: mww at macports.org
Date: 2007-11-05 13:45:27 -0800 (Mon, 05 Nov 2007)
Log Message:
-----------
try to determine the number of cores for number of parallel build jobs (if those are set to '0')
Modified Paths:
--------------
trunk/base/src/port1.0/portbuild.tcl
Modified: trunk/base/src/port1.0/portbuild.tcl
===================================================================
--- trunk/base/src/port1.0/portbuild.tcl 2007-11-05 21:02:40 UTC (rev 30738)
+++ trunk/base/src/port1.0/portbuild.tcl 2007-11-05 21:45:27 UTC (rev 30739)
@@ -122,6 +122,10 @@
return ""
}
set jobs [option build.jobs]
+ # if set to '0', use the number of cores for the number of jobs
+ if {$jobs == 0} {
+ set jobs [exec "/usr/sbin/sysctl" "-n" "hw.ncpu"]
+ }
if {![string is integer -strict $jobs] || $jobs <= 1} {
return ""
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071105/1458a646/attachment.html
More information about the macports-changes
mailing list