diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-08-30 16:22:32 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2012-08-30 16:22:32 +0000 |
commit | 3ead47e71881c4bf4413aa07e5de09e6bcd30009 (patch) | |
tree | 490baa6b38a36170c86594c670d909d8b10974d8 /llvm/unittests | |
parent | fa81438042115e02935c39f1086c4957da2c2dc9 (diff) | |
download | bcm5719-llvm-3ead47e71881c4bf4413aa07e5de09e6bcd30009.tar.gz bcm5719-llvm-3ead47e71881c4bf4413aa07e5de09e6bcd30009.zip |
ADTTests: [CMake] Exclude DenseMapTest.cpp and SmallVectorTest.cpp on MSVC9 due to its bug.
llvm-svn: 162918
Diffstat (limited to 'llvm/unittests')
-rw-r--r-- | llvm/unittests/ADT/CMakeLists.txt | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/CMakeLists.txt b/llvm/unittests/ADT/CMakeLists.txt index d272b09088f..cb9a9092b56 100644 --- a/llvm/unittests/ADT/CMakeLists.txt +++ b/llvm/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} + ) |