MCPcopy Create free account
hub / github.com/pytorch/executorch / check_dependencies

Function check_dependencies

scripts/check_binary_dependencies.py:204–213  ·  view source on GitHub ↗

Check that there are no shared object dependencies of a binary executable.

(readelf: str, binary_file: Path)

Source from the content-addressed store, hash-verified

202
203
204def check_dependencies(readelf: str, binary_file: Path) -> int:
205 """Check that there are no shared object dependencies of a binary executable."""
206 elf_dependencies = get_elf_dependencies(readelf, binary_file)
207 if len(elf_dependencies) > 0:
208 print("Found the following shared object dependencies:")
209 for dependency in elf_dependencies:
210 print(" *", dependency)
211 print()
212 return STATUS_ERROR
213 return STATUS_OK
214
215
216def check_disallowed_symbols_build_dir(nm: str, cxxfilt: str, build_root: Path) -> int:

Callers 1

mainFunction · 0.85

Calls 1

get_elf_dependenciesFunction · 0.85

Tested by

no test coverage detected