(self)
| 1874 | |
| 1875 | # Return true if this tool requires building from source, and false if this is a precompiled tool. |
| 1876 | def needs_compilation(self): |
| 1877 | if self.cmake_build_type: |
| 1878 | return True |
| 1879 | |
| 1880 | for tool_name in self.uses: |
| 1881 | tool = find_tool(tool_name) |
| 1882 | if not tool: |
| 1883 | debug_print(f'Tool {self} depends on {tool_name} which does not exist!') |
| 1884 | continue |
| 1885 | if tool.needs_compilation(): |
| 1886 | return True |
| 1887 | |
| 1888 | return False |
| 1889 | |
| 1890 | # Specifies the target path where this tool will be installed to. This could |
| 1891 | # either be a directory or a filename (e.g. in case of node.js) |
no test coverage detected