How to interface Purify into Scons?

82 views Asked by At

I have a Makefile that has various calls to scons.

scons "--jobs=8" -f SConstruct

The SCons command generates a line similar to the following:

g++ -o buildversion.o -c -c -g -fPIC buildversion.cc

How do you interface Purify into this mix? I'm guessing that ultimately the line is suppose to look like

purify g++ -o buildversion.o -c -c -g -fPIC buildversion.cc
1

There are 1 answers

1
FrodeTennebo On

You need to set the environment, CC, CXX, SHCC, SHCXX, LINK, SHLINK depending on your particular scenario, appropriately, e.g.:

import os
env = Environment(ENV = {'PATH' : os.environ.get('PATH','')},
                  LINK = "purify g++")