Boost logo

Boost-Build :

From: Dave Rahardja (drahardja_at_[hidden])
Date: 2007-04-10 09:56:18


Hi guys,
 
Wonder what happened to my last post... but I noticed that "actions
together" is not working, or perhaps I'm just not doing it right. Here's my
tool definition:
 
-------------
 
import feature ;
 
feature.extend toolset : mytool ;
 
rule init ( version ? : command * : options * )
{
}
 
generators.register-c-compiler mytool.compile.c++ : CPP : OBJ :
    <toolset>mytool ;
generators.register-linker mytool.link : OBJ : EXE : <toolset>mytool ;
 
rule compile.c++ ( targets + : sources * : properties * )
{
}
 
rule link ( targets + : sources * : properties * )
{
}
 
actions together compile.c++
{
    copy $(>) $(<)
}
 
actions link
{
    copy $(>[1]) $(<)
}

------------

I would expect "actions together compile..." would gather all the C++ files
together, and invoke the action with a list of the input files. Is this
accurate? Or can "actions together" be used only with certain kinds of
rules?

The reason I'm doing this has to do with the fact that compiler license
check-outs take forever on my network, and it happens each time I invoke the
compiler. I want to "batch build" a bunch of files with a single invocation
of the compiler executable.

-dr


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk