Check .rela instead of ELF64 for the compensation vaue resetting
[oota-llvm.git] / unittests / VMCore / CMakeLists.txt
1 set(LLVM_LINK_COMPONENTS
2   asmparser
3   core
4   ipa
5   )
6
7 set(VMCoreSources
8   ConstantsTest.cpp
9   DominatorTreeTest.cpp
10   IRBuilderTest.cpp
11   InstructionsTest.cpp
12   MDBuilderTest.cpp
13   MetadataTest.cpp
14   PassManagerTest.cpp
15   TypeBuilderTest.cpp
16   TypesTest.cpp
17   ValueMapTest.cpp
18   VerifierTest.cpp
19   )
20
21 # MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
22 # See issue#331418 in Visual Studio.
23 if(MSVC AND MSVC_VERSION LESS 1600)
24   list(REMOVE_ITEM VMCoreSources ValueMapTest.cpp)
25 endif()
26
27 # HACK: Declare a couple of source files as optionally compiled to satisfy the
28 # missing-file-checker in LLVM's weird CMake build.
29 set(LLVM_OPTIONAL_SOURCES
30   ValueMapTest.cpp
31   )
32
33 add_llvm_unittest(VMCoreTests
34   ${VMCoreSources}
35   )