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 | |
| 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')
| -rw-r--r-- | src/engine/SCons/Tool/mslink.py | 4 | ||||
| -rw-r--r-- | src/engine/SCons/Tool/msvc.py | 10 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/engine/SCons/Tool/mslink.py b/src/engine/SCons/Tool/mslink.py index 3fdd4d8..391cbfe 100644 --- a/src/engine/SCons/Tool/mslink.py +++ b/src/engine/SCons/Tool/mslink.py @@ -71,7 +71,7 @@ def win32LinkGenerator(env, target, source, for_signature): '$(', '$_LIBDIRFLAGS', '$)', '$_LIBFLAGS' ] if env.has_key('PDB') and env['PDB']: - args.extend(['/PDB:%s'%env['PDB'], '/DEBUG']) + args.extend(['/PDB:%s'%target[0].File(env['PDB']), '/DEBUG']) args.extend(map(SCons.Util.to_String, source)) return win32TempFileMunge(env, args, for_signature) @@ -81,7 +81,7 @@ def win32LibGenerator(target, source, env, for_signature): no_import_lib = env.get('no_import_lib', 0) if env.has_key('PDB') and env['PDB']: - listCmd.extend(['/PDB:%s'%env['PDB'], '/DEBUG']) + listCmd.extend(['/PDB:%s'%target[0].File(env['PDB']), '/DEBUG']) for tgt in target: ext = os.path.splitext(str(tgt))[1] 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' |
