SCons: generally expand vars when setting Flags to environment
This commit is contained in:
parent
80e1e382f4
commit
8ffbc29b29
1 changed files with 6 additions and 6 deletions
|
|
@ -90,13 +90,13 @@ def setupBasicEnvironment():
|
|||
|
||||
def appendCppDefine(env,var,cppVar, elseVal=''):
|
||||
if env[var]:
|
||||
env.Append(CPPDEFINES = cppVar )
|
||||
env.Append(CPPDEFINES = env.subst(cppVar) )
|
||||
elif elseVal:
|
||||
env.Append(CPPDEFINES = elseVal)
|
||||
env.Append(CPPDEFINES = env.subst(elseVal))
|
||||
|
||||
def appendVal(env,var,targetVar,val=None):
|
||||
if env[var]:
|
||||
env.Append( **{targetVar: val or env[var]})
|
||||
env.Append( **{targetVar: env.subst(val) or env[var]})
|
||||
|
||||
|
||||
def handleNoBugSwitches(env):
|
||||
|
|
|
|||
Loading…
Reference in a new issue