[llvm-commits] [llvm] r119782 - /llvm/trunk/unittests/CMakeLists.txt

NAKAMURA Takumi geek4civic at gmail.com
Thu Nov 18 19:19:33 PST 2010


Author: chapuni
Date: Thu Nov 18 21:19:32 2010
New Revision: 119782

URL: http://llvm.org/viewvc/llvm-project?rev=119782&view=rev
Log:
unittests/CMakeLists.txt: Suppress building ValueMapTest on MSVC older than 10(VS2010).

MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
See issue#331418 in Visual Studio.

Modified:
    llvm/trunk/unittests/CMakeLists.txt

Modified: llvm/trunk/unittests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/CMakeLists.txt?rev=119782&r1=119781&r2=119782&view=diff
==============================================================================
--- llvm/trunk/unittests/CMakeLists.txt (original)
+++ llvm/trunk/unittests/CMakeLists.txt Thu Nov 18 21:19:32 2010
@@ -74,7 +74,7 @@
   Transforms/Utils/Cloning.cpp
   )
 
-add_llvm_unittest(VMCore
+set(VMCoreSources
   VMCore/ConstantsTest.cpp
   VMCore/DerivedTypesTest.cpp
   VMCore/InstructionsTest.cpp
@@ -84,6 +84,14 @@
   VMCore/VerifierTest.cpp
   )
 
+# MSVC9 and 8 cannot compile ValueMapTest.cpp due to their bug.
+# See issue#331418 in Visual Studio.
+if(MSVC AND MSVC_VERSION LESS 1600)
+  list(REMOVE_ITEM VMCoreSources VMCore/ValueMapTest.cpp)
+endif()
+
+add_llvm_unittest(VMCore ${VMCoreSources})
+
 set(LLVM_LINK_COMPONENTS
   System
   Support





More information about the llvm-commits mailing list