summaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-08-30 16:22:32 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-08-30 16:22:32 +0000
commitd566c5ff5dbd5b906ac41ebe92b4120369d95b41 (patch)
tree7260d9bed41643d4c51f7a4da98cd266705839d5 /unittests
parent54cbadc2e2c232952025fab916c44d8796b8682e (diff)
downloadllvm-d566c5ff5dbd5b906ac41ebe92b4120369d95b41.tar.gz
llvm-d566c5ff5dbd5b906ac41ebe92b4120369d95b41.tar.bz2
llvm-d566c5ff5dbd5b906ac41ebe92b4120369d95b41.tar.xz
ADTTests: [CMake] Exclude DenseMapTest.cpp and SmallVectorTest.cpp on MSVC9 due to its bug.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162918 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/ADT/CMakeLists.txt15
1 files changed, 14 insertions, 1 deletions
diff --git a/unittests/ADT/CMakeLists.txt b/unittests/ADT/CMakeLists.txt
index d272b09088..cb9a9092b5 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
@@ -31,3 +31,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}
+ )