70538df621
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
22 lines
399 B
Makefile
22 lines
399 B
Makefile
# $FreeBSD$
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= llvmx86desc
|
|
|
|
SRCDIR= lib/Target/X86/MCTargetDesc
|
|
SRCS= X86AsmBackend.cpp \
|
|
X86ELFObjectWriter.cpp \
|
|
X86MachObjectWriter.cpp \
|
|
X86MCAsmInfo.cpp \
|
|
X86MCCodeEmitter.cpp \
|
|
X86MCTargetDesc.cpp \
|
|
X86WinCOFFObjectWriter.cpp
|
|
CFLAGS+= -I${LLVM_SRCS}/${SRCDIR}/..
|
|
|
|
TGHDRS= X86GenInstrInfo \
|
|
X86GenRegisterInfo \
|
|
X86GenSubtargetInfo
|
|
|
|
.include "../clang.lib.mk"
|