Defaults.py (SCons-4.3.0) | : | Defaults.py (SCons-4.4.0) | ||
---|---|---|---|---|
skipping to change at line 485 | skipping to change at line 485 | |||
l = [] | l = [] | |||
for k, v in sorted(defs.items()): | for k, v in sorted(defs.items()): | |||
if v is None: | if v is None: | |||
l.append(str(k)) | l.append(str(k)) | |||
else: | else: | |||
l.append(str(k) + '=' + str(v)) | l.append(str(k) + '=' + str(v)) | |||
else: | else: | |||
l = [str(defs)] | l = [str(defs)] | |||
return l | return l | |||
def _defines(prefix, defs, suffix, env, target, source, c=_concat_ixes): | def _defines(prefix, defs, suffix, env, target=None, source=None, c=_concat_ixes ): | |||
"""A wrapper around _concat_ixes that turns a list or string | """A wrapper around _concat_ixes that turns a list or string | |||
into a list of C preprocessor command-line definitions. | into a list of C preprocessor command-line definitions. | |||
""" | """ | |||
return c(prefix, env.subst_list(processDefines(defs), target=target, source= source), suffix, env) | return c(prefix, env.subst_list(processDefines(defs), target=target, source= source), suffix, env) | |||
class NullCmdGenerator: | class NullCmdGenerator: | |||
"""This is a callable class that can be used in place of other | """This is a callable class that can be used in place of other | |||
command generators if you don't want them to do anything. | command generators if you don't want them to do anything. | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |