1 set(LLVM_LINK_COMPONENTS 2 asmparser 3 core 4 ipa 5 ) 6 7 set(IRSources 8 AttributesTest.cpp 9 ConstantsTest.cpp 10 DominatorTreeTest.cpp 11 IRBuilderTest.cpp 12 InstructionsTest.cpp 13 MDBuilderTest.cpp 14 MetadataTest.cpp 15 PassManagerTest.cpp 16 PatternMatch.cpp 17 TypeBuilderTest.cpp 18 TypesTest.cpp 19 ValueMapTest.cpp 20 ValueTest.cpp 21 VerifierTest.cpp 22 WaymarkTest.cpp 23 ) 24 25 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug. 26 # See issue#331418 in Visual Studio. 27 if(MSVC AND MSVC_VERSION LESS 1600) 28 list(REMOVE_ITEM IRSources ValueMapTest.cpp) 29 endif() 30 31 # HACK: Declare a couple of source files as optionally compiled to satisfy the 32 # missing-file-checker in LLVM's weird CMake build. 33 set(LLVM_OPTIONAL_SOURCES 34 ValueMapTest.cpp 35 ) 36 37 add_llvm_unittest(IRTests 38 ${IRSources} 39 ) 40