Boost logo

Boost-Build :

From: David Abrahams (dave_at_[hidden])
Date: 2005-02-12 15:31:33


testing.jam now contains a new rule called "time" that can be used to
measure the length of a build step (including a step that runs an
executable). For example:

import testing ;

compile c.cpp ;
obj c-obj : c.cpp ;
compile-fail c-f.cpp ;
run r.cpp : : dir/input.txt ;
run-fail r-f.cpp ;
time execution : r ; # <- here
time compilation : c-obj ; # <- here

Volodya, regarding the above, I found it impossible to time the
compilation of the object file created as a result of

compile c.cpp

because there was no way to name the intermediate OBJ target
produced. Adding

obj c : c.cpp ;
time c-compilation : c.obj ;

doesn't work, and neither does

time c-compilation : c ;

I'm a little confused about what's going on here -- it seems as though
we're being stopped by the built-in limitation that says two main
targets can't have the same name. But surely it ought to be possible
to write

obj c : c.cpp ;
exe c : c.obj ;

or something very similar and simple. No?

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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