INNER CODE UNIT · Python
read_exports
uxlfoundation/oneDAL · dev/release_tests/compare_release_trees.py:661
def read_exports(platform, path):
if platform == "linux":
return read_linux_exports(path)
if platform == "windows":
return read_windows_exports(path)
raise ValueError(f"unsupported platform: {platform}")
def is_shared_library(platform, path):
if platform == "linux":
return ".so" in Path(path).name
suffixes = SHARED_LIBRARY_SUFFIXES[platform]
return Path(path).suffix.lower() in suffixes
def compare_shared_library_exports(platform, make_root, bazel_root, files, limit):
errors = 0
compared = 0