[30714] trunk/base/src/port1.0/portbuild.tcl

source_changes at macosforge.org source_changes at macosforge.org
Mon Nov 5 05:12:45 PST 2007


Revision: 30714
          http://trac.macosforge.org/projects/macports/changeset/30714
Author:   mww at macports.org
Date:     2007-11-05 05:12:44 -0800 (Mon, 05 Nov 2007)

Log Message:
-----------
add option "use_parallel_build [yes|no]":
* declares IF a port can be build in parallel (via `make -j N')
* defaults to "no"

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 10:33:41 UTC (rev 30713)
+++ trunk/base/src/port1.0/portbuild.tcl	2007-11-05 13:12:44 UTC (rev 30714)
@@ -42,7 +42,7 @@
 options build.target
 options build.nice
 options build.jobs
-commands build
+commands build parallel_build
 # defaults
 default build.dir {${workpath}/${worksrcdir}}
 default build.cmd {[build_getnicevalue][build_getmaketype][build_getmakejobs]}
@@ -111,6 +111,13 @@
 }
 
 proc build_getmakejobs {args} {
+    # check if port allows a parallel build
+    global use_parallel_build
+    if {![tbool use_parallel_build]} {
+         return ""
+    }
+    ui_debug "port allows a parallel build"
+
     if {![exists build.jobs] || ![string match "*make*" [build_getmaketype]]} {
 	return ""
     }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071105/7884ec5f/attachment.html


More information about the macports-changes mailing list