1 add_llvm_library(LLVMCore 2 AsmWriter.cpp 3 Attributes.cpp 4 AutoUpgrade.cpp 5 BasicBlock.cpp 6 ConstantFold.cpp 7 Constants.cpp 8 Core.cpp 9 DataLayout.cpp 10 DebugInfo.cpp 11 DebugLoc.cpp 12 DIBuilder.cpp 13 Dominators.cpp 14 Function.cpp 15 GCOV.cpp 16 GVMaterializer.cpp 17 Globals.cpp 18 IRBuilder.cpp 19 InlineAsm.cpp 20 Instruction.cpp 21 Instructions.cpp 22 IntrinsicInst.cpp 23 LLVMContext.cpp 24 LLVMContextImpl.cpp 25 LeakDetector.cpp 26 Metadata.cpp 27 Module.cpp 28 Pass.cpp 29 PassManager.cpp 30 PassRegistry.cpp 31 PrintModulePass.cpp 32 Type.cpp 33 TypeFinder.cpp 34 Use.cpp 35 User.cpp 36 Value.cpp 37 ValueSymbolTable.cpp 38 ValueTypes.cpp 39 Verifier.cpp 40 ) 41 42 # Workaround: It takes over 20 minutes to compile with msvc10. 43 # FIXME: Suppressing optimizations to core libraries would not be good thing. 44 if( MSVC_VERSION LESS 1700 ) 45 set_property( 46 SOURCE Function.cpp 47 PROPERTY COMPILE_FLAGS "/Og-" 48 ) 49 endif() 50 51 add_dependencies(LLVMCore intrinsics_gen) 52