Subject: Re: [Boost-build] How to use purecov within Jamfile
From: Belcourt, Kenneth (kbelco_at_[hidden])
Date: 2009-01-24 16:15:48
On Jan 23, 2009, at 7:27 AM, Min Wang wrote:
> Is purecov like tool supported by boost build ? Can anyone tell me
> how ?
> It has been asked before but I don't see any solution was given yet.
There's no solution in Boost.Build that I'm aware of. Here's what we
did to bring up support for the Rational Tools. We created a feature
in builtin.jam called instrument with appropriate values.
feature instrument : none purify quantify valgrind cachegrind
zerofault : propagated ;
and in gcc.jam, for example, we update the CONFIG_COMMAND variable
when we see the instrument we're after.
flags gcc.link CONFIG_COMMAND <instrument>purify/<runtime-link>shared
: purify $(CONFIG_COMMAND) -always-use-cache-dir -cache-dir=$
flags gcc.link CONFIG_COMMAND <instrument>quantify/<runtime-link>shared
: quantify $(CONFIG_COMMAND) -always-use-cache-dir -cache-dir=$
flags $(toolset).link START-GROUP $(condition)/<instrument>none : -
Wl,--start-group : unchecked ;
flags $(toolset).link END-GROUP $(condition)/<instrument>none : -Wl,--
end-group : unchecked ;
Hope that helps.
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