diff options
author | Steven Knight <knight@baldmt.com> | 2004-02-26 05:56:51 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2004-02-26 05:56:51 (GMT) |
commit | 6daca278926c2b23a11530aa67ea614d7e54e1e0 (patch) | |
tree | cc4a700d072dff78736d245d7c664be7ad2d32f0 /test/RANLIBFLAGS.py | |
parent | e4730ef6dd88c7c3d73657b75c35d3a8dc55b76b (diff) | |
download | SCons-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.py | 4 |
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') |