tweak SConstruct so that 'scan-build scons' works
This commit is contained in:
parent
b4e28ac021
commit
91221ac256
1 changed files with 5 additions and 0 deletions
|
|
@ -68,10 +68,15 @@ if GetOption("coverage"):
|
|||
LDFLAGS=["-fprofile-arcs", "-ftest-coverage"],
|
||||
LIBS=['gcov'])
|
||||
|
||||
env["CC"] = os.getenv("CC") or env["CC"]
|
||||
env["CXX"] = os.getenv("CXX") or env["CXX"]
|
||||
|
||||
if os.getenv("CC") == "clang" or env['PLATFORM'] == 'darwin':
|
||||
env.Replace(CC="clang",
|
||||
CXX="clang++")
|
||||
|
||||
env["ENV"].update(x for x in os.environ.items() if x[0].startswith("CCC_"))
|
||||
|
||||
#rootpath = env['ROOTPATH'] = os.path.abspath('.')
|
||||
#env.Append(CPPPATH=os.path.join('#', "hammer"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue