Skip to content

TARGET.base does not get expanded correctly #1732

Closed

Description

@bdbaddog

This issue was originally created at: 2007-09-18 01:22:49.
This issue was reported by: eeick.
eeick said at 2007-09-18 01:22:49

Hi I'm running v0.97.D001 and have the following SConstruct file with VS2005:

BuildDir('obj/debug', 'src', duplicate=0)
env = Environment()
env['PDB'] = '${TARGET.base}.pdb'
env.Program('bin/debug/hello', ['obj/debug/main.c'])

Instead of expanding ${TARGET.base}.pdb to bin/debug/hello.pdb scons returns the
following Error:

scons: *** AttributeError 'NoneType' object has no attribute 'base'' trying to evaluate ${TARGET.base}'

stevenknight said at 2007-09-19 23:27:08

Already reported as issue 1656, and fixed in 0.97.0d20070809. I updated the
test case from 1656 to use ${TARGET.base} to make sure this stays fixed:

http://scons.tigris.org/servlets/ReadMsg?list=dev&msgNo=4300
http://scons.tigris.org/servlets/ReadMsg?list=commits&msgNo=1022

Thanks,

*** This issue has been marked as a duplicate of 1656 ***

stevenknight said this issue is a duplicate of #1656 at 2007-09-19 23:27:08.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions