MCPcopy Create free account
hub / github.com/apache/tvm / create_staticlib

Function create_staticlib

python/tvm/support/cc.py:126–145  ·  view source on GitHub ↗

Create static library. Parameters ---------- output : str The target shared library. inputs : List[str] List of inputs files. Each input file can be a tarball of objects or an object file. ar : Optional[str] Path to the ar command to be used

(output, inputs, ar=None)

Source from the content-addressed store, hash-verified

124
125
126def create_staticlib(output, inputs, ar=None):
127 """Create static library.
128
129 Parameters
130 ----------
131 output : str
132 The target shared library.
133
134 inputs : List[str]
135 List of inputs files. Each input file can be a tarball
136 of objects or an object file.
137
138 ar : Optional[str]
139 Path to the ar command to be used
140 """
141
142 if _is_linux_like():
143 return _linux_ar(output, inputs, ar)
144 else:
145 raise ValueError("Unsupported platform")
146
147
148def create_executable(output, objects, options=None, cc=None, cwd=None, ccache_env=None):

Callers

nothing calls this directly

Calls 2

_is_linux_likeFunction · 0.85
_linux_arFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…