- Make top-relative '#/dir' lookups work like '#dir'.
+ - Fix for relative CPPPATH directories in subsidiary SConscript files
+ (broken in 0.06).
+
From Steven Knight:
- Fix so that -c -n does *not* remove the targets!
def generate_build_args(self):
dict = copy.copy(self.env.Dictionary())
- if hasattr(self, 'dir'):
- auto = self.env.autogenerate(dir = self.dir)
+ if hasattr(self, 'cwd'):
+ auto = self.env.autogenerate(dir = self.cwd)
else:
auto = self.env.autogenerate()
dict.update(auto)
test.write('SConstruct', """
env = Environment(CPPPATH = ['include'])
-obj = env.Object(target='prog', source='subdir/prog.c')
+obj = env.Object(target='foobar/prog', source='subdir/prog.c')
env.Program(target='prog', source=obj)
SConscript('subdir/SConscript', "env")
# Change CPPPATH and make sure we don't rebuild because of it.
test.write('SConstruct', """
env = Environment(CPPPATH = 'inc2 include')
-obj = env.Object(target='prog', source='subdir/prog.c')
+obj = env.Object(target='foobar/prog', source='subdir/prog.c')
env.Program(target='prog', source=obj)
SConscript('subdir/SConscript', "env")