llvm-project/clang/lib/CodeGen/CMakeLists.txt

93 lines
1.6 KiB
CMake
Raw Normal View History

set(LLVM_LINK_COMPONENTS
Analysis
BitReader
BitWriter
Core
Coverage
IPO
IRReader
InstCombine
Instrumentation
LTO
Linker
MC
ObjCARCOpts
Object
ProfileData
ScalarOpts
Support
Target
TransformUtils
)
# In a standard Clang+LLVM build, we need to generate intrinsics before
# building codegen. In a standalone build, LLVM is already built and we don't
# need this dependency. Furthermore, LLVM doesn't export it so we can't have
# this dependency.
set(codegen_deps intrinsics_gen)
if (CLANG_BUILT_STANDALONE)
set(codegen_deps)
endif()
add_clang_library(clangCodeGen
BackendUtil.cpp
CGAtomic.cpp
2009-02-13 23:42:50 +08:00
CGBlocks.cpp
CGBuiltin.cpp
CGCUDABuiltin.cpp
CGCUDANV.cpp
CGCUDARuntime.cpp
CGCXX.cpp
CGCXXABI.cpp
CGCall.cpp
CGClass.cpp
CGCleanup.cpp
CGDebugInfo.cpp
CGDecl.cpp
CGDeclCXX.cpp
CGException.cpp
CGExpr.cpp
CGExprAgg.cpp
CGExprCXX.cpp
CGExprComplex.cpp
CGExprConstant.cpp
CGExprScalar.cpp
CGLoopInfo.cpp
CGObjC.cpp
CGObjCGNU.cpp
CGObjCMac.cpp
2011-03-25 22:16:48 +08:00
CGObjCRuntime.cpp
CGOpenCLRuntime.cpp
CGOpenMPRuntime.cpp
CGOpenMPRuntimeNVPTX.cpp
CGRecordLayoutBuilder.cpp
CGStmt.cpp
CGStmtOpenMP.cpp
CGVTT.cpp
CGVTables.cpp
CodeGenABITypes.cpp
CodeGenAction.cpp
CodeGenFunction.cpp
CodeGenModule.cpp
CodeGenPGO.cpp
2010-10-15 08:39:31 +08:00
CodeGenTBAA.cpp
CodeGenTypes.cpp
CoverageMappingGen.cpp
ItaniumCXXABI.cpp
MicrosoftCXXABI.cpp
ModuleBuilder.cpp
ObjectFilePCHContainerOperations.cpp
SanitizerMetadata.cpp
SwiftCallingConv.cpp
TargetInfo.cpp
DEPENDS
${codegen_deps}
2010-05-05 13:41:05 +08:00
LINK_LIBS
clangAST
clangBasic
clangFrontend
clangLex
)