MCPcopy Index your code
hub / github.com/emscripten-core/emsdk / needs_compilation

Method needs_compilation

emsdk.py:1876–1888  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers 2

find_sdksFunction · 0.80
find_toolsFunction · 0.80

Calls 2

find_toolFunction · 0.85
debug_printFunction · 0.85

Tested by

no test coverage detected