MCPcopy Create free account
hub / github.com/apache/tvm-ffi / _platform_lib_filename

Function _platform_lib_filename

tests/python/test_libinfo.py:122–128  ·  view source on GitHub ↗

Return the platform-appropriate shared library filename for ``target_name``.

(target_name: str)

Source from the content-addressed store, hash-verified

120
121
122def _platform_lib_filename(target_name: str) -> str:
123 """Return the platform-appropriate shared library filename for ``target_name``."""
124 if sys.platform.startswith("win32"):
125 return f"{target_name}.dll"
126 if sys.platform.startswith("darwin"):
127 return f"lib{target_name}.dylib"
128 return f"lib{target_name}.so"
129
130
131def test_find_library_by_basename_extra_lib_paths(tmp_path: Path) -> None:

Calls

no outgoing calls

Tested by

no test coverage detected