2012-06-21 09:51:26 +00:00
|
|
|
set(LLVM_LINK_COMPONENTS
|
|
|
|
asmparser
|
|
|
|
core
|
|
|
|
ipa
|
|
|
|
)
|
|
|
|
|
|
|
|
set(VMCoreSources
|
|
|
|
ConstantsTest.cpp
|
|
|
|
DominatorTreeTest.cpp
|
2012-07-16 07:44:45 +00:00
|
|
|
IRBuilderTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
InstructionsTest.cpp
|
2012-07-15 23:26:50 +00:00
|
|
|
MDBuilderTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
MetadataTest.cpp
|
|
|
|
PassManagerTest.cpp
|
2012-07-15 23:45:24 +00:00
|
|
|
TypeBuilderTest.cpp
|
2012-06-21 09:51:26 +00:00
|
|
|
ValueMapTest.cpp
|
|
|
|
VerifierTest.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
|
|
|
|
# See issue#331418 in Visual Studio.
|
|
|
|
if(MSVC AND MSVC_VERSION LESS 1600)
|
|
|
|
list(REMOVE_ITEM VMCoreSources ValueMapTest.cpp)
|
|
|
|
endif()
|
|
|
|
|
2012-06-21 22:17:39 +00:00
|
|
|
# HACK: Declare a couple of source files as optionally compiled to satisfy the
|
|
|
|
# missing-file-checker in LLVM's weird CMake build.
|
|
|
|
set(LLVM_OPTIONAL_SOURCES
|
|
|
|
ValueMapTest.cpp
|
|
|
|
)
|
|
|
|
|
2012-06-21 09:51:26 +00:00
|
|
|
add_llvm_unittest(VMCoreTests
|
|
|
|
${VMCoreSources}
|
|
|
|
)
|