summaryrefslogtreecommitdiffstats
path: root/test/Scanner.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-05-19 17:49:55 (GMT)
committerSteven Knight <knight@baldmt.com>2004-05-19 17:49:55 (GMT)
commitafc2ed0070c73d8f0dbc24ba3fe5e5773522beaa (patch)
tree9122729d1120c1119fe10ff360f4675789ca8f9b /test/Scanner.py
parente2763b54fc32b24169586918481d31b6234c0ae4 (diff)
downloadSCons-afc2ed0070c73d8f0dbc24ba3fe5e5773522beaa.zip
SCons-afc2ed0070c73d8f0dbc24ba3fe5e5773522beaa.tar.gz
SCons-afc2ed0070c73d8f0dbc24ba3fe5e5773522beaa.tar.bz2
Fix spurious rebuilds/reinstalls of header files and circular dependencies with generated header files by allowing Scanners to be associated explicitly with Builders, not just through Scanner file suffix lists.
Diffstat (limited to 'test/Scanner.py')
-rw-r--r--test/Scanner.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Scanner.py b/test/Scanner.py
index 61d9e39..0bb3d8b 100644
--- a/test/Scanner.py
+++ b/test/Scanner.py
@@ -91,9 +91,8 @@ env2 = env.Copy()
env2.Append(SCANNERS = [k2scan])
env2.Command('junk', 'junk.k2', r'%s build.py $SOURCES $TARGET')
-bar_in = File('bar.in')
-env.Command('bar', bar_in, r'%s build.py $SOURCES $TARGET')
-bar_in.source_scanner = kscan
+bar = env.Command('bar', 'bar.in', r'%s build.py $SOURCES $TARGET')
+bar.source_scanner = kscan
""" % (python, python, python))
test.write('foo.k',