[all-commits] [llvm/llvm-project] 718921: [readtapi] Add support for stubify-ing directories...

Cyndy Ishida via All-commits all-commits at lists.llvm.org
Sat Feb 3 09:33:54 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7189219ec9fc768f159917052b4b5998d077c39f
      https://github.com/llvm/llvm-project/commit/7189219ec9fc768f159917052b4b5998d077c39f
  Author: Cyndy Ishida <cyndy_ishida at apple.com>
  Date:   2024-02-03 (Sat, 03 Feb 2024)

  Changed paths:
    M llvm/include/llvm/TextAPI/Utils.h
    M llvm/lib/TextAPI/Utils.cpp
    A llvm/test/tools/llvm-readtapi/Inputs/libSystem.1.yaml
    A llvm/test/tools/llvm-readtapi/stubify-delete.test
    A llvm/test/tools/llvm-readtapi/stubify-simple.test
    A llvm/test/tools/llvm-readtapi/stubify-symlink.test
    R llvm/test/tools/llvm-readtapi/stubify.test
    M llvm/tools/llvm-readtapi/TapiOpts.td
    M llvm/tools/llvm-readtapi/llvm-readtapi.cpp

  Log Message:
  -----------
  [readtapi] Add support for stubify-ing directories (#76885)

When given a directory input `llvm-readtapi` traverses through the
directory to find dylibs or tbd files to operate on. TBD files will be
created with the same base file name as the dylib. Symlinks should be
created if the input is one.

This also introduces options to delete input files which are defined as
library files that existed before `readtapi -stubify` was invoked. Also
the ability to delete private libraries where private libraries are in a
predefined file system locations on darwin based platforms.




More information about the All-commits mailing list