0

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
user2569618
  • 517
  • 3
  • 16
  • 42

1 Answers1

0

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++")
FrodeTennebo
  • 531
  • 3
  • 13
  • You'll also need to make sure that purify is in the env['ENV']['PATH'], or you specify the full path to purify – bdbaddog Dec 28 '16 at 23:52