summaryrefslogtreecommitdiffstats
path: root/test/option--warn.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)
commit04ebe107191659f805bd63148c61c1026efeb686 (patch)
tree9122729d1120c1119fe10ff360f4675789ca8f9b /test/option--warn.py
parent12d2ae1193b9e32e0164218bb73240791914f976 (diff)
downloadSCons-04ebe107191659f805bd63148c61c1026efeb686.zip
SCons-04ebe107191659f805bd63148c61c1026efeb686.tar.gz
SCons-04ebe107191659f805bd63148c61c1026efeb686.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/option--warn.py')
-rw-r--r--test/option--warn.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/option--warn.py b/test/option--warn.py
index 41a37e1..8c84b6d 100644
--- a/test/option--warn.py
+++ b/test/option--warn.py
@@ -54,12 +54,15 @@ test = TestSCons.TestSCons(match = TestCmd.match_re_dotall)
-test.write("SConstruct","""
+test.write("SConstruct", """\
+import SCons.Defaults
+
def build(target, source, env):
pass
env=Environment()
-env['BUILDERS']['test'] = Builder(action=build)
+env['BUILDERS']['test'] = Builder(action=build,
+ source_scanner=SCons.Defaults.ObjSourceScan)
env.test(target='foo', source='foo.c')
""")