[all-commits] [llvm/llvm-project] b1e92f: [llvm] Don't require third-party components when c...

James Le Cuirot via All-commits all-commits at lists.llvm.org
Sat Jan 14 09:13:28 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b1e92f8def98c5e34fdb3b4c18ac16d65fb613a2
      https://github.com/llvm/llvm-project/commit/b1e92f8def98c5e34fdb3b4c18ac16d65fb613a2
  Author: James Le Cuirot <chewi at gentoo.org>
  Date:   2023-01-14 (Sat, 14 Jan 2023)

  Changed paths:
    M llvm/cmake/modules/CrossCompile.cmake

  Log Message:
  -----------
  [llvm] Don't require third-party components when cross-compiling

It is possible to build LLVM with just the "llvm" and "cmake" components
checked out. This requires disabling the `LLVM_INCLUDE_BENCHMARKS` and
`LLVM_INCLUDE_TESTS` options. These options are not passed through to
the native build when cross-compiling though, so the build will break if
the "third-party" component is missing. We don't need the benchmarks or
tests for the native build, so disable these unconditionally. This fixes
cross-compiling on Gentoo, where only the required components are
checked out.

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




More information about the All-commits mailing list