aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sparse_product.cpp
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2018-07-20 08:36:38 -0700
committerGravatar Gael Guennebaud <g.gael@free.fr>2018-07-20 08:36:38 -0700
commit56a750b6ccf52e59874e991a2373265fc3ab4b8e (patch)
tree814f96b44caf4616d9ddc681804feec7ada3de4b /test/sparse_product.cpp
parentc58b874727717c88f5026d29e3eadc9d1b19653d (diff)
Disable optimization for sparse_product unit test with MSVC 2013, otherwise it takes several hours to build.
Diffstat (limited to 'test/sparse_product.cpp')
-rw-r--r--test/sparse_product.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/sparse_product.cpp b/test/sparse_product.cpp
index d6b7638b1..a44d39d1d 100644
--- a/test/sparse_product.cpp
+++ b/test/sparse_product.cpp
@@ -7,6 +7,12 @@
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#if EIGEN_COMP_MSVC==1800
+// This unit test takes forever to compile in Release mode with MSVC 2013,
+// multiple hours. So let's switch off optimization for this one.
+#pragma optimize("",off)
+#endif
+
static long int nb_temporaries;
inline void on_temporary_creation() {