diff options
author | Steven Knight <knight@baldmt.com> | 2002-08-29 15:40:24 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-08-29 15:40:24 (GMT) |
commit | 8acb75d6298160a653e88897ab3b9273dd3d1551 (patch) | |
tree | e597b25faf566d51cdb3bc8404ff0c76e3c7600e | |
parent | 10d2e5186125873bdf7f4a0a4b7a5dca1f131af5 (diff) | |
download | SCons-8acb75d6298160a653e88897ab3b9273dd3d1551.zip SCons-8acb75d6298160a653e88897ab3b9273dd3d1551.tar.gz SCons-8acb75d6298160a653e88897ab3b9273dd3d1551.tar.bz2 |
Account for systems not having every type of compiler.
-rw-r--r-- | src/engine/SCons/Tool/__init__.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/engine/SCons/Tool/__init__.py b/src/engine/SCons/Tool/__init__.py index 6d2a44b..f4a7912 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) |