[Build v2] How-to: Link a CPP target with purify (on Solaris) ?????

Hello all, This should be a relatively simple problem, but I haven't figure it out yet either.... In Boost.Build v2, how can you link a C++ program with purify on Solaris ? I assumed it would be something like: sun.link.c++="purify CC" but the link action uses "$(.root)/CC" and not a variable. Do you have to write a new purify.jam Jamrules file to make this happen our is there another variable that needs to be defined ? -- Thanks in advance for any clues... greg

Sylvain, Gregory M wrote:
This should be a relatively simple problem, but I haven't figure it out yet either....
In Boost.Build v2, how can you link a C++ program with purify on Solaris ? I assumed it would be something like:
sun.link.c++="purify CC"
but the link action uses "$(.root)/CC" and not a variable.
You'd need the change the command used to invoke the compiler in your user-config.jam using sun : : purify CC ; If you want to have both non-purify and purify builds, define two versions: using sun : 8.0 ; using sun : 8.0-purify : purify CC ; (I'm not sure 8.0 is nearway close the real version numbers, I've lost in sun compiler versioning ;-). The version is just for identification however, it has not effect on anything). HTH, Volodya
participants (2)
-
Sylvain, Gregory M
-
Vladimir Prus