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Â +=Â
> EXTRA_its_order_server_SOURCES = probes.d
> probes.o:Â Â
> Â Â Â Â Â Â
> /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