Boost logo

Boost-Build :

From: Alex Khassapov (alex.khassapov_at_[hidden])
Date: 2008-03-26 01:03:12


Khassapov, Alex <Alex.Khassapov <at> itg.com> writes:

>
> If not, I wonder if anybody would have an
> idea how to implement dtrace in bjam?
>
> Problem is that dtrace is like a ‘pre-link’
> step – it runs on projects’ object files and also produces additional
> object file.  And it takes a “.d’ script as source.  So I
> need to get object files from my project, pass them to dtrace and then add
> generated object file back to my project.
>
> It looks like I can’t just create a
> generator for “.d’ scripts because it takes a list of object files
> as sources in addition to “.d’ script?  
>
> In some projects we run dtrace only on
> some object files, not all.
>
> Here’s an example how we use dtrace in Automake:
>
> its_order_server_LDADD  += 
> probes.o
>
> EXTRA_its_order_server_SOURCES = probes.d
>
>  
> probes.o:  
> $(its_order_server_OBJECTS)
>       
> /usr/sbin/dtrace -G -32 -s probes.d $(its_order_server_OBJECTS:.lo=.o)
>

Here's an example of dtrace usage, which makes me copletely confused as to how
to implement this in bjam!!

cc -c src1.c
cc -c src2.c
...
dtrace -G -32 -s myserv.d src1.o src2.o ...
cc -o myserv myserv.o src1.o src2.o ...


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