summaryrefslogtreecommitdiffstats
path: root/test/RANLIBFLAGS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-05-06 22:27:28 (GMT)
committerSteven Knight <knight@baldmt.com>2002-05-06 22:27:28 (GMT)
commita2ceacbe77db1b308f26454477ae3b1f1139eac8 (patch)
tree8f1532baef4ea475eb5ff7bff4e74b15e7d48a27 /test/RANLIBFLAGS.py
parent06b66d7da2547d860be7a124c54d3ddf2ee964e1 (diff)
downloadSCons-a2ceacbe77db1b308f26454477ae3b1f1139eac8.zip
SCons-a2ceacbe77db1b308f26454477ae3b1f1139eac8.tar.gz
SCons-a2ceacbe77db1b308f26454477ae3b1f1139eac8.tar.bz2
Raise an error if a builder is called multiple times for a given target, unless the builder is marked as multicall safe. (Anthony Roach)
Diffstat (limited to 'test/RANLIBFLAGS.py')
-rw-r--r--test/RANLIBFLAGS.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/RANLIBFLAGS.py b/test/RANLIBFLAGS.py
index 5549e94..752f685 100644
--- a/test/RANLIBFLAGS.py
+++ b/test/RANLIBFLAGS.py
@@ -64,8 +64,10 @@ bar = Environment(LIBS = ['bar'], LIBPATH = ['.'], RANLIB = '',
foo.Library(target = 'foo', source = 'foo.c')
bar.Library(target = 'bar', source = 'bar.c')
-foo.Program(target = 'f', source = 'main.c')
-bar.Program(target = 'b', source = 'main.c')
+main = foo.Object('main', 'main.c')
+
+foo.Program(target = 'f', source = main)
+bar.Program(target = 'b', source = main)
""" % python)
test.write('foo.c', r"""