diff options
Diffstat (limited to 'unittests/ADT/CMakeLists.txt')
-rw-r--r-- | unittests/ADT/CMakeLists.txt | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/unittests/ADT/CMakeLists.txt b/unittests/ADT/CMakeLists.txt index d272b09088f5..94f7fda2a9e3 100644 --- a/unittests/ADT/CMakeLists.txt +++ b/unittests/ADT/CMakeLists.txt @@ -2,7 +2,7 @@ set(LLVM_LINK_COMPONENTS Support ) -add_llvm_unittest(ADTTests +set(ADTSources APFloatTest.cpp APIntTest.cpp BitVectorTest.cpp @@ -13,6 +13,7 @@ add_llvm_unittest(ADTTests FoldingSet.cpp HashingTest.cpp ilistTest.cpp + ImmutableMapTest.cpp ImmutableSetTest.cpp IntEqClassesTest.cpp IntervalMapTest.cpp @@ -31,3 +32,16 @@ add_llvm_unittest(ADTTests TwineTest.cpp VariadicFunctionTest.cpp ) + +# They cannot be compiled on MSVC9 due to its bug. +if(MSVC AND MSVC_VERSION LESS 1600) + set(LLVM_OPTIONAL_SOURCES + DenseMapTest.cpp + SmallVectorTest.cpp + ) + list(REMOVE_ITEM ADTSources ${LLVM_OPTIONAL_SOURCES}) +endif() + +add_llvm_unittest(ADTTests + ${ADTSources} + ) |