[all-commits] [llvm/llvm-project] d15239: [lldb] Add LLVM include dirs prior to gtest target...

Michał Górny via All-commits all-commits at lists.llvm.org
Mon Oct 24 03:18:32 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d15239388cca8a5031119b4660e456c26ca5f379
      https://github.com/llvm/llvm-project/commit/d15239388cca8a5031119b4660e456c26ca5f379
  Author: Michał Górny <mgorny at gentoo.org>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M lldb/cmake/modules/LLDBStandalone.cmake

  Log Message:
  -----------
  [lldb] Add LLVM include dirs prior to gtest target in standalone build

Move include_directories() declaration before gtest targets are created
in standalone build.  This fixes build failure due to gtest targets
being unable to find LLVM headers, e.g.:

    /var/tmp/portage/dev-util/lldb-16.0.0_pre20221023/work/llvm/utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h:43:10: fatal error: llvm/ADT/Optional.h: No such file or directory

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




More information about the All-commits mailing list