aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2023-01-07 13:52:39 +0000
committerMichał Górny <mgorny@gentoo.org>2023-01-14 18:12:39 +0100
commitb1e92f8def98c5e34fdb3b4c18ac16d65fb613a2 (patch)
tree07bd79ba14ec920e368e745f91381a4e7bb7aa9f /clang/lib/Frontend/CompilerInvocation.cpp
parent1e60e7add7ce18a652a726d5ec267547399c744e (diff)
downloadllvm-b1e92f8def98c5e34fdb3b4c18ac16d65fb613a2.zip
llvm-b1e92f8def98c5e34fdb3b4c18ac16d65fb613a2.tar.gz
llvm-b1e92f8def98c5e34fdb3b4c18ac16d65fb613a2.tar.bz2
[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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions