Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Changeset 30714

Show
Ignore:
Timestamp:
11/05/07 05:12:44 (13 months ago)
Author:
mww@…
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portbuild.tcl

    r28660 r30714  
    4343options build.nice 
    4444options build.jobs 
    45 commands build 
     45commands build parallel_build 
    4646# defaults 
    4747default build.dir {${workpath}/${worksrcdir}} 
     
    112112 
    113113proc build_getmakejobs {args} { 
     114    # check if port allows a parallel build 
     115    global use_parallel_build 
     116    if {![tbool use_parallel_build]} { 
     117         return "" 
     118    } 
     119    ui_debug "port allows a parallel build" 
     120 
    114121    if {![exists build.jobs] || ![string match "*make*" [build_getmaketype]]} { 
    115122        return ""