"""
def __init__(self,
- platform=SCons.Platform.Platform(),
+ platform=None,
tools=None,
options=None,
**kw):
self._dict['BUILDERS'] = BuilderDict(self._dict['BUILDERS'], self)
+ if platform is None:
+ platform = self._dict.get('PLATFORM', None)
+ if platform is None:
+ platform = SCons.Platform.Platform()
if SCons.Util.is_String(platform):
platform = SCons.Platform.Platform(platform)
self._dict['PLATFORM'] = str(platform)
options.Update(self)
if tools is None:
- tools = ['default']
+ tools = self._dict.get('TOOLS', None)
+ if tools is None:
+ tools = ['default']
apply_tools(self, tools)
# Reapply the passed in variables after calling the tools,