aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorQiongsi Wu <qwu@ibm.com>2022-04-19 10:08:57 -0400
committerDavid Tenty <daltenty@ibm.com>2022-04-19 10:10:07 -0400
commit2512a875ccac158bc9b654b09e3347db167e33df (patch)
tree4e4308fc412b50cf2d82884da251c7045761c149 /clang/lib/Frontend/CompilerInvocation.cpp
parent218b5c83940d469424564ba6f1ec488c4970a5e5 (diff)
downloadllvm-2512a875ccac158bc9b654b09e3347db167e33df.zip
llvm-2512a875ccac158bc9b654b09e3347db167e33df.tar.gz
llvm-2512a875ccac158bc9b654b09e3347db167e33df.tar.bz2
[clang] Adding Platform/Architecture Specific Resource Header Installation Targets
The goal of this patch is to improve distribution build's flexibility to include only applicable header files. Currently, the clang-resource-headers target contains nearly all the files in clang/lib/Headers. Most of these files are platform specific (e.g. immintrin.h is x86 specific). A distribution build will have to either include all the headers for all the platforms, or not include any headers. For example, if a distribution build for powerpc includes the clang-resource-headers target, it will include all the x86 specific headers, even-though the x86 specific headers cannot be used. This patch breaks up the clang-resource-headers list to a core list and platform specific lists. With the patch, a distribution build can now include the ppc-resource-headers to include the headers applicable to the powerpc platform. Specifically, one can now have cmake ... LLVM_DISTRIBUTION_COMPONENTS="clang;ppc-resource-headers" ... ../llvm ninja install-distribution then installs the powerpc headers. Similarly, one can do cmake ... LLVM_DISTRIBUTION_COMPONENTS="clang;x86-resource-headers" ... ../llvm to include headers applicable to the x86 platform in a distribution installation. To implement this behaviour, the patch does two things: * It breaks up the long files header file list to a core list and platform specific lists. * It adds numerous platform specific installation targets. Differential Revision: https://reviews.llvm.org/D123498
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions