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
69 lines
1.3 KiB
Makefile
69 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= clangsema
|
|
|
|
SRCDIR= tools/clang/lib/Sema
|
|
SRCS= AnalysisBasedWarnings.cpp \
|
|
AttributeList.cpp \
|
|
CodeCompleteConsumer.cpp \
|
|
DeclSpec.cpp \
|
|
DelayedDiagnostic.cpp \
|
|
IdentifierResolver.cpp \
|
|
JumpDiagnostics.cpp \
|
|
MultiplexExternalSemaSource.cpp \
|
|
Scope.cpp \
|
|
ScopeInfo.cpp \
|
|
Sema.cpp \
|
|
SemaAccess.cpp \
|
|
SemaAttr.cpp \
|
|
SemaCXXScopeSpec.cpp \
|
|
SemaCast.cpp \
|
|
SemaChecking.cpp \
|
|
SemaCodeComplete.cpp \
|
|
SemaConsumer.cpp \
|
|
SemaDecl.cpp \
|
|
SemaDeclAttr.cpp \
|
|
SemaDeclCXX.cpp \
|
|
SemaDeclObjC.cpp \
|
|
SemaExceptionSpec.cpp \
|
|
SemaExpr.cpp \
|
|
SemaExprCXX.cpp \
|
|
SemaExprMember.cpp \
|
|
SemaExprObjC.cpp \
|
|
SemaFixItUtils.cpp \
|
|
SemaInit.cpp \
|
|
SemaLambda.cpp \
|
|
SemaLookup.cpp \
|
|
SemaObjCProperty.cpp \
|
|
SemaOverload.cpp \
|
|
SemaPseudoObject.cpp \
|
|
SemaStmt.cpp \
|
|
SemaStmtAsm.cpp \
|
|
SemaStmtAttr.cpp \
|
|
SemaTemplate.cpp \
|
|
SemaTemplateDeduction.cpp \
|
|
SemaTemplateInstantiate.cpp \
|
|
SemaTemplateInstantiateDecl.cpp \
|
|
SemaTemplateVariadic.cpp \
|
|
SemaType.cpp \
|
|
TargetAttributesSema.cpp
|
|
|
|
TGHDRS= AttrList \
|
|
AttrParsedAttrKinds \
|
|
AttrParsedAttrList \
|
|
AttrTemplateInstantiate \
|
|
Attrs \
|
|
CommentNodes \
|
|
DeclNodes \
|
|
DiagnosticASTKinds \
|
|
DiagnosticCommentKinds \
|
|
DiagnosticCommonKinds \
|
|
DiagnosticParseKinds \
|
|
DiagnosticSemaKinds \
|
|
StmtNodes \
|
|
arm_neon
|
|
|
|
.include "../clang.lib.mk"
|