[all-commits] [llvm/llvm-project] 1dfb0c: [libc] Fix wrappergen_test.cpp on runtimes build

Joseph Huber via All-commits all-commits at lists.llvm.org
Sun Dec 11 14:43:20 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1dfb0cd703fe1ada21681283fd75e6aba4b7f216
      https://github.com/llvm/llvm-project/commit/1dfb0cd703fe1ada21681283fd75e6aba4b7f216
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-12-11 (Sun, 11 Dec 2022)

  Changed paths:
    M libc/test/utils/tools/CMakeLists.txt
    M libc/test/utils/tools/WrapperGen/CMakeLists.txt

  Log Message:
  -----------
  [libc] Fix wrappergen_test.cpp on runtimes build

The `tools` directory depends on `llvm_gtest` which is not immediately
availible with a runtimes build. This patch builds the `llvm_gtest`
target if it isn't present. Additionally, we use the CMake binary
directory to find the tool binary, which is different when using a
runtimes build. Using the LLVM binary directory should match both build
conditions.

Reviewed By: lntue

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




More information about the All-commits mailing list