[all-commits] [llvm/llvm-project] 55acb7: [lldb][cmake] Allow specifying custom libcxx for t...

Michael Buch via All-commits all-commits at lists.llvm.org
Sat May 20 04:08:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 55acb70b211a9807307c028f172b8400ebb30d9b
      https://github.com/llvm/llvm-project/commit/55acb70b211a9807307c028f172b8400ebb30d9b
  Author: Michael Buch <michaelbuch12 at gmail.com>
  Date:   2023-05-20 (Sat, 20 May 2023)

  Changed paths:
    M lldb/cmake/modules/LLDBStandalone.cmake
    M lldb/test/CMakeLists.txt

  Log Message:
  -----------
  [lldb][cmake] Allow specifying custom libcxx for tests in standalone builds

Standalone builds currently do not set the `LLDB_HAS_LIBCXX`,
`LIBCXX_LIBRARY_DIR`, `LIBCXX_GENERATED_INCLUDE_DIR`.
These are necessary for API tests with `USE_LIBCPP` to run against
a custom built libcxx. Thus on all buildbots using standalone builds
(most notably the public swift-ci), the API tests always run against
the libcxx headers in the system SDK.

This patch introduces a new cmake variable `LLDB_TEST_LIBCXX_ROOT_DIR`
that allows us to point the tests in standalone builds to a custom
libcxx directory.

Since the user can control the libcxx location we can hard error if
no such custom libcxx build exists.

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




More information about the All-commits mailing list