df5d2454a3
Dont use/link ARCMT, StaticAnalyzer and Rewriter to clang when the user specifies not to. Dont build ASTMatchers with Rewriter disabled and StaticAnalyzer when it's disabled. Without all those three, the clang binary shrinks (x86_64) from ~36MB to ~32MB (unstripped). To disable these clang components, and get a smaller clang binary built and installed, set WITHOUT_CLANG_FULL in src.conf(5). During the initial stages of buildworld, those extra components are already disabled automatically, to save some build time. MFC after: 1 week
96 lines
1.9 KiB
Makefile
96 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
.if !make(install)
|
|
.if !defined(EARLY_BUILD) && defined(MK_CLANG_FULL) && ${MK_CLANG_FULL} != "no"
|
|
_libclangstaticanalyzer= \
|
|
libclangstaticanalyzercheckers \
|
|
libclangstaticanalyzercore \
|
|
libclangstaticanalyzerfrontend
|
|
_libclangarcmigrate= \
|
|
libclangarcmigrate
|
|
_libclangrewriter= \
|
|
libclangrewritecore \
|
|
libclangrewritefrontend
|
|
.endif # !EARLY_BUILD && MK_CLANG_FULL
|
|
|
|
SUBDIR= libclanganalysis \
|
|
${_libclangarcmigrate} \
|
|
libclangast \
|
|
libclangbasic \
|
|
libclangcodegen \
|
|
libclangdriver \
|
|
libclangedit \
|
|
libclangfrontend \
|
|
libclangfrontendtool \
|
|
libclanglex \
|
|
libclangparse \
|
|
${_libclangrewriter} \
|
|
libclangsema \
|
|
libclangserialization \
|
|
${_libclangstaticanalyzer} \
|
|
\
|
|
libllvmanalysis \
|
|
libllvmarchive \
|
|
libllvmasmparser \
|
|
libllvmasmprinter \
|
|
libllvmbitreader \
|
|
libllvmbitwriter \
|
|
libllvmcodegen \
|
|
libllvmcore \
|
|
libllvminstcombine \
|
|
libllvminstrumentation \
|
|
libllvmipa \
|
|
libllvmipo \
|
|
libllvmlinker \
|
|
libllvmmc \
|
|
libllvmmcparser \
|
|
libllvmobject \
|
|
libllvmscalaropts \
|
|
libllvmselectiondag \
|
|
libllvmsupport \
|
|
libllvmtablegen \
|
|
libllvmtarget \
|
|
libllvmtransformutils \
|
|
libllvmvectorize \
|
|
\
|
|
libllvmarmasmparser \
|
|
libllvmarmcodegen \
|
|
libllvmarmdesc \
|
|
libllvmarmdisassembler \
|
|
libllvmarminfo \
|
|
libllvmarminstprinter \
|
|
libllvmmipsasmparser \
|
|
libllvmmipscodegen \
|
|
libllvmmipsdesc \
|
|
libllvmmipsdisassembler \
|
|
libllvmmipsinfo \
|
|
libllvmmipsinstprinter \
|
|
libllvmpowerpccodegen \
|
|
libllvmpowerpcdesc \
|
|
libllvmpowerpcinfo \
|
|
libllvmpowerpcinstprinter \
|
|
libllvmx86asmparser \
|
|
libllvmx86codegen \
|
|
libllvmx86desc \
|
|
libllvmx86disassembler \
|
|
libllvmx86info \
|
|
libllvmx86instprinter \
|
|
libllvmx86utils
|
|
|
|
.if ${MK_CLANG_EXTRAS} != "no"
|
|
SUBDIR+=libllvmdebuginfo \
|
|
libllvmexecutionengine \
|
|
libllvminterpreter \
|
|
libllvmjit \
|
|
libllvmmcdisassembler \
|
|
libllvmmcjit \
|
|
libllvmruntimedyld
|
|
.endif # MK_CLANG_EXTRAS
|
|
.endif # !make(install)
|
|
|
|
SUBDIR+= include
|
|
|
|
.include <bsd.subdir.mk>
|