Account for systems not having every type of compiler.
authorstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 29 Aug 2002 15:40:24 +0000 (15:40 +0000)
committerstevenknight <stevenknight@fdb21ef1-2011-0410-befe-b5e4ea1792b1>
Thu, 29 Aug 2002 15:40:24 +0000 (15:40 +0000)
git-svn-id: http://scons.tigris.org/svn/scons/trunk@453 fdb21ef1-2011-0410-befe-b5e4ea1792b1

src/engine/SCons/Tool/__init__.py

index 6d2a44bee4938550efc6d74d619ad8055d769824..f4a791256040bd2b53f3b55c77e6d5db5cdba5ce 100644 (file)
@@ -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)