[llvm-commits] [llvm] r162918 - /llvm/trunk/unittests/ADT/CMakeLists.txt
NAKAMURA Takumi
geek4civic at gmail.com
Thu Aug 30 09:22:32 PDT 2012
Author: chapuni
Date: Thu Aug 30 11:22:32 2012
New Revision: 162918
URL: http://llvm.org/viewvc/llvm-project?rev=162918&view=rev
Log:
ADTTests: [CMake] Exclude DenseMapTest.cpp and SmallVectorTest.cpp on MSVC9 due to its bug.
Modified:
llvm/trunk/unittests/ADT/CMakeLists.txt
Modified: llvm/trunk/unittests/ADT/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/CMakeLists.txt?rev=162918&r1=162917&r2=162918&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/CMakeLists.txt (original)
+++ llvm/trunk/unittests/ADT/CMakeLists.txt Thu Aug 30 11:22:32 2012
@@ -2,7 +2,7 @@
Support
)
-add_llvm_unittest(ADTTests
+set(ADTSources
APFloatTest.cpp
APIntTest.cpp
BitVectorTest.cpp
@@ -31,3 +31,16 @@
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}
+ )
More information about the llvm-commits
mailing list