From: stevenknight Date: Thu, 29 Aug 2002 15:40:24 +0000 (+0000) Subject: Account for systems not having every type of compiler. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f02dff57f099107397d1722c30cd3938e1d683a8;p=scons.git Account for systems not having every type of compiler. git-svn-id: http://scons.tigris.org/svn/scons/trunk@453 fdb21ef1-2011-0410-befe-b5e4ea1792b1 --- diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index 6d2a44be..f4a79125 100644 --- a/src/engine/SCons/Tool/__init__.py +++ b/src/engine/SCons/Tool/__init__.py @@ -149,9 +149,10 @@ def FindAllTools(tools): return filter (_ToolExists, tools) def tool_list(): - return [FindTool(linkers), - FindTool(c_compilers), - FindTool(cxx_compilers), - FindTool(fortran_compilers), - FindTool(assemblers) - ] + FindAllTools(other_tools) + tools = [FindTool(linkers), + FindTool(c_compilers), + FindTool(cxx_compilers), + FindTool(fortran_compilers), + FindTool(assemblers) + ] + FindAllTools(other_tools) + return filter(lambda x: x, tools)