[all-commits] [llvm/llvm-project] 4241ac: [lldb][gnustep] Add basic test and infrastructure ...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Wed May 17 01:39:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4241ac542d691289f08c3229cfc58641f5659ec7
      https://github.com/llvm/llvm-project/commit/4241ac542d691289f08c3229cfc58641f5659ec7
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    A lldb/cmake/modules/FindGNUstepObjC.cmake
    M lldb/test/CMakeLists.txt
    A lldb/test/Shell/Expr/objc-gnustep-print.m
    M lldb/test/Shell/helper/build.py
    M lldb/test/Shell/helper/toolchain.py
    M lldb/test/Shell/lit.cfg.py
    M lldb/test/Shell/lit.site.cfg.py.in

  Log Message:
  -----------
  [lldb][gnustep] Add basic test and infrastructure for GNUstep ObjC runtime

This patch adds test infrastructure to utilize the GNUstep runtime in the LLDB test suite and adds coverage for features that already work on Linux. These seem accidental in parts, but it's a good early baseline. On Windows nothing works yet. Please find the repository for the GNUstep ObjC runtime here: https://github.com/gnustep/libobjc2

GNUstep support is disabled by default. CMake configuration involves two variables:
* `LLDB_TEST_OBJC_GNUSTEP=On` enables GNUstep support in the test suite. It requires the libobjc2 shared library and headers to be found.
* `LLDB_TEST_OBJC_GNUSTEP=Off` disables GNUstep support in the test suite and resets associated cache values if necessary (default).
* `LLDB_TEST_OBJC_GNUSTEP_DIR` allows to pass a custom installation root.

Differential Revision: https://reviews.llvm.org/D146058




More information about the All-commits mailing list