Bug 1205020 - Disable optimizations in TestTuple.cpp since it breaks the build on VS2013 Windows 10. r=froydnj
authorJared Wein <jwein@mozilla.com>
Wed, 23 Sep 2015 13:53:07 -0400
changeset 264293 cafa078ece955e6df4dc7acb1dfd8113da931ef0
parent 264292 5ee6279df6794f1a625ba240ee67ba5aed2ab00d
child 264294 8045d8fcbfe5474276037faccb5863746830326b
push id65590
push userkwierso@gmail.com
push dateFri, 25 Sep 2015 00:14:23 +0000
treeherdermozilla-inbound@0ab67cace54f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1205020
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1205020 - Disable optimizations in TestTuple.cpp since it breaks the build on VS2013 Windows 10. r=froydnj
mfbt/tests/TestTuple.cpp
--- a/mfbt/tests/TestTuple.cpp
+++ b/mfbt/tests/TestTuple.cpp
@@ -22,16 +22,22 @@ using mozilla::MakeUnique;
 using mozilla::Move;
 using mozilla::Pair;
 using mozilla::Tie;
 using mozilla::Tuple;
 using mozilla::UniquePtr;
 using mozilla::unused;
 using std::pair;
 
+#if (_MSC_VER == 1800)
+// Optimizations in VS2013 on Windows 10 cause an internal compiler error
+// with this file.
+#pragma optimize("", off)
+#endif
+
 #define CHECK(c) \
   do { \
     bool cond = !!(c); \
     MOZ_RELEASE_ASSERT(cond, "Failed assertion: " #c); \
   } while (false)
 
 // The second argument is the expected type. It's variadic to allow the
 // type to contain commas.