summaryrefslogtreecommitdiffstats
path: root/test/RANLIBFLAGS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-02-26 05:56:51 (GMT)
committerSteven Knight <knight@baldmt.com>2004-02-26 05:56:51 (GMT)
commit6daca278926c2b23a11530aa67ea614d7e54e1e0 (patch)
treecc4a700d072dff78736d245d7c664be7ad2d32f0 /test/RANLIBFLAGS.py
parente4730ef6dd88c7c3d73657b75c35d3a8dc55b76b (diff)
downloadSCons-6daca278926c2b23a11530aa67ea614d7e54e1e0.zip
SCons-6daca278926c2b23a11530aa67ea614d7e54e1e0.tar.gz
SCons-6daca278926c2b23a11530aa67ea614d7e54e1e0.tar.bz2
Initialize *FLAGS variables with objects that can add flags either as strings or lists.
Diffstat (limited to 'test/RANLIBFLAGS.py')
-rw-r--r--test/RANLIBFLAGS.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/RANLIBFLAGS.py b/test/RANLIBFLAGS.py
index fec606d..07da92e 100644
--- a/test/RANLIBFLAGS.py
+++ b/test/RANLIBFLAGS.py
@@ -48,10 +48,8 @@ os.system(string.join(sys.argv[1:], " "))
test.write('SConstruct', """
foo = Environment(LIBS = ['foo'], LIBPATH = ['.'])
-ranlib = foo.Dictionary('RANLIB')
-ranlibflags = foo.Dictionary('RANLIBFLAGS')
bar = Environment(LIBS = ['bar'], LIBPATH = ['.'], RANLIB = '',
- RANLIBFLAGS = r'%s wrapper.py ' + ranlib + ' ' + ranlibflags)
+ RANLIBFLAGS = foo.subst(r'%s wrapper.py $RANLIB $RANLIBFLAGS'))
foo.Library(target = 'foo', source = 'foo.c')
bar.Library(target = 'bar', source = 'bar.c')