[all-commits] [llvm/llvm-project] 93d1a7: [libc] Fix tablegen when using a runtimes build

Joseph Huber via All-commits all-commits at lists.llvm.org
Tue Nov 15 10:10:10 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 93d1a7bfc1808c89096ef092439be703830b28ac
      https://github.com/llvm/llvm-project/commit/93d1a7bfc1808c89096ef092439be703830b28ac
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2022-11-15 (Tue, 15 Nov 2022)

  Changed paths:
    M libc/CMakeLists.txt
    M libc/utils/HdrGen/CMakeLists.txt
    M libc/utils/LibcTableGenUtil/CMakeLists.txt

  Log Message:
  -----------
  [libc] Fix tablegen when using a runtimes build

When using `LLVM_ENABLE_RUNTIMES=libc` we need to perform a few extra
steps to include LLVM utilities similar to if we were performing a
standalone build. Libc depends on the tablegen utilities and the LLVM
libraries when performing a full build. When using an
`LLVM_ENABLE_PROJECTS=libc` build these are included as a part of the
greater LLVM build, but here we need to perform it maunally. This patch
should allow using `LLVM_LIBC_FULL_BUILD=ON` when building with
runtimes.

Reviewed By: lntue

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




More information about the All-commits mailing list