[llvm-commits] [PATCH] Fix gtest build on Visual Studio 2012 RC

Justin Holewinski justin.holewinski at gmail.com
Mon Jun 4 23:02:23 PDT 2012


An apparent change to the Visual C++ STL for Visual Studio 2012 is causing
gtest to no longer build.  gtest requires std::tr1::tuple to support up to
10 template parameters, but the implementation in Visual Studio 2012 RC
only supports up to 8 by default.  This patch adds a compiler definition
(-D_VARIADIC_MAX=10) to the gtest libs and unit tests when MSVC_VERSION ==
1700.

Upstream issue:   http://code.google.com/p/googletest/issues/detail?id=408

-- 

Thanks,

Justin Holewinski
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120604/caf52830/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-gtest-build-issue-on-Visual-Studio-2012-RC.patch
Type: application/octet-stream
Size: 1546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120604/caf52830/attachment.obj>


More information about the llvm-commits mailing list