the previous Builder attributes from the construction Environment.
(Bug reported by Bj=F6rn Bylander.)
+ - Fix adding a prefix to a file when the target isn't specified.
+ (Bug reported by Esa Ilari Vuokko.)
+
From Anthony Roach:
- Use a different static object suffix (.os) when using gcc so shared
s = source[0]
if isinstance(s, SCons.Node.Node):
s = os.path.split(str(s))[1]
- target = [ os.path.splitext(s)[0] + suf ]
+ target = [ pre + os.path.splitext(s)[0] + suf ]
else:
target = adjustixes(target, pre, suf)
tgt = builder(env, target = 'tgt2a tgt2b', source = 'src2')
assert tgt.path == 'libtgt2a tgt2b', \
"Target has unexpected name: %s" % tgt.path
+ tgt = builder(env, source = 'src3')
+ assert tgt.path == 'libsrc3', \
+ "Target has unexpected name: %s" % tgt.path
def test_src_suffix(self):
"""Test Builder creation with a specified source file suffix
tgt = builder(env, target = 'tgt4a tgt4b', source = 'src4')
assert tgt.path == 'tgt4a tgt4b.o', \
"Target has unexpected name: %s" % tgt.path
+ tgt = builder(env, source = 'src5')
+ assert tgt.path == 'src5.o', \
+ "Target has unexpected name: %s" % tgt.path
def test_ListBuilder(self):
"""Testing ListBuilder class."""