You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
waf/playground/maxjobs2/wscript

18 lines
382 B
Python

#! /usr/bin/env python
# execute several instances of the build in "compute" (look in the wscript over there)
def configure(conf):
pass
def build(bld):
p = bld.srcnode.find_node('compute').abspath()
lockf = bld.srcnode.make_node('busy_lock.txt')
lockf.write('')
bld.jobs = JOBS = 3
for i in range(JOBS):
bld(rule='waf configure build -o test%d'%i, cwd=p, always=True)