简体   繁体   中英

How to interface Purify into Scons?

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM