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

jmr at macports.org jmr at macports.org
Wed Mar 18 19:10:18 PDT 2009


Revision: 48314
          http://trac.macports.org/changeset/48314
Author:   jmr at macports.org
Date:     2009-03-18 19:10:17 -0700 (Wed, 18 Mar 2009)
Log Message:
-----------
Make parallel build opt-out rather than opt-in (buildmakejobs still defaults to 1)

Modified Paths:
--------------
    trunk/base/src/port1.0/portbuild.tcl

Modified: trunk/base/src/port1.0/portbuild.tcl
===================================================================
--- trunk/base/src/port1.0/portbuild.tcl	2009-03-19 00:52:26 UTC (rev 48313)
+++ trunk/base/src/port1.0/portbuild.tcl	2009-03-19 02:10:17 UTC (rev 48314)
@@ -43,7 +43,8 @@
 options build.nice
 options build.jobs
 options build.asroot
-commands build parallel_build
+options use_parallel_build
+commands build
 # defaults
 default build.asroot no
 default build.dir {${workpath}/${worksrcdir}}
@@ -52,6 +53,7 @@
 default build.jobs {${buildmakejobs}}
 default build.pre_args {${build.target}}
 default build.target "all"
+default use_parallel_build yes
 
 set_ui_prefix
 
@@ -116,9 +118,9 @@
     # check if port allows a parallel build
     global use_parallel_build
     if {![tbool use_parallel_build]} {
+        ui_debug "port disallows a parallel build"
         return ""
     }
-    ui_debug "port allows a parallel build"
 
     if {![exists build.jobs] || !([string match "*make*" [option build.cmd]] || [string match "*scons*" [option build.cmd]])} {
         return ""
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090318/6a1d58c8/attachment.html>


More information about the macports-changes mailing list