diff options
author | Steven Knight <knight@baldmt.com> | 2002-10-07 23:50:06 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-10-07 23:50:06 (GMT) |
commit | bbdf3e20a90dabfe9944bfc58e6756cf799df7e9 (patch) | |
tree | 6bfa44d8dd2407ce2973a3b688860629accc0e50 /src/engine/SCons/Tool/msvc.py | |
parent | bdf39335f8eff310c749fa5a9d08697aa81a003b (diff) | |
download | SCons-bbdf3e20a90dabfe9944bfc58e6756cf799df7e9.zip SCons-bbdf3e20a90dabfe9944bfc58e6756cf799df7e9.tar.gz SCons-bbdf3e20a90dabfe9944bfc58e6756cf799df7e9.tar.bz2 |
Get rid of the magicness of the magic _ variables. (Anthony Roach)
Diffstat (limited to 'src/engine/SCons/Tool/msvc.py')
-rw-r--r-- | src/engine/SCons/Tool/msvc.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/engine/SCons/Tool/msvc.py b/src/engine/SCons/Tool/msvc.py index 1ba9ede..f71c074 100644 --- a/src/engine/SCons/Tool/msvc.py +++ b/src/engine/SCons/Tool/msvc.py @@ -191,13 +191,7 @@ def get_msdev_paths(version=None): def validate_vars(env): """Validate the PDB, PCH, and PCHSTOP construction variables.""" - if env.has_key('PDB') and env['PDB']: - if not isinstance(env['PDB'], SCons.Node.FS.File): - raise SCons.Errors.UserError, "The PDB construction variable must be a File instance: %s"%env['PDB'] - if env.has_key('PCH') and env['PCH']: - if not isinstance(env['PCH'], SCons.Node.FS.File): - raise SCons.Errors.UserError, "The PCH construction variable must be a File instance: %s"%env['PCH'] if not env.has_key('PCHSTOP'): raise SCons.Errors.UserError, "The PCHSTOP construction must be defined if PCH is defined." if not SCons.Util.is_String(env['PCHSTOP']): @@ -257,8 +251,8 @@ def generate(env, platform): static_obj.add_action(suffix, SCons.Defaults.CXXAction) shared_obj.add_action(suffix, SCons.Defaults.ShCXXAction) - env['CCPDBFLAGS'] = '${(PDB and "/Zi /Fd%s"%PDB) or ""}' - env['CCPCHFLAGS'] = '${(PCH and "/Yu%s /Fp%s"%(PCHSTOP or "",PCH)) or ""}' + env['CCPDBFLAGS'] = '${(PDB and "/Zi /Fd%s"%File(PDB)) or ""}' + env['CCPCHFLAGS'] = '${(PCH and "/Yu%s /Fp%s"%(PCHSTOP or "",File(PCH))) or ""}' env['CCCOMFLAGS'] = '$CPPFLAGS $_CPPINCFLAGS /c $SOURCES /Fo$TARGET $CCPCHFLAGS $CCPDBFLAGS' env['CC'] = 'cl' env['CCFLAGS'] = '/nologo' |