Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorRay Molenkamp <github@lazydodo.com>2019-10-02 13:36:07 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-10-02 13:40:55 +0300
commita434b30667c02609c307d2871b27f24a64ff3f44 (patch)
treecd2d37a5ef6ddf7cc53a97a3ff44a287a066023d /extern
parentf97a64aa9b7b384f8221a1ef4f2eef9cde1238db (diff)
Fix building QuadriFlow with Clang on Windows
Boost 1.68 has a bug in its type_traits where it does not include the right header for the is_assignable macro when building with Clang. Temporarily work around it until we upgrade to a newer Boost version that fixes it. Differential Revision: https://developer.blender.org/D5962
Diffstat (limited to 'extern')
-rw-r--r--extern/quadriflow/patches/blender.patch16
-rw-r--r--extern/quadriflow/src/config.hpp5
2 files changed, 21 insertions, 0 deletions
diff --git a/extern/quadriflow/patches/blender.patch b/extern/quadriflow/patches/blender.patch
index d131abc52e2..55fdd123e3b 100644
--- a/extern/quadriflow/patches/blender.patch
+++ b/extern/quadriflow/patches/blender.patch
@@ -1,3 +1,19 @@
+diff --git a/extern/quadriflow/src/config.hpp b/extern/quadriflow/src/config.hpp
+index 842b885..bf597ad 100644
+--- a/extern/quadriflow/src/config.hpp
++++ b/extern/quadriflow/src/config.hpp
+@@ -1,6 +1,11 @@
+ #ifndef CONFIG_H_
+ #define CONFIG_H_
+
++/* Workaround a bug in boost 1.68, until we upgrade to a newer version. */
++#if defined(__clang__) && defined(WIN32)
++ #include <boost/type_traits/is_assignable.hpp>
++ using namespace boost;
++#endif
+ // Move settings to cmake to make CMake happy :)
+
+ // #define WITH_SCALE
diff --git a/extern/quadriflow/3rd/lemon-1.3.1/lemon/arg_parser.cc b/extern/quadriflow/3rd/lemon-1.3.1/lemon/arg_parser.cc
index 35a73d9..0eeba8a 100644
--- a/extern/quadriflow/3rd/lemon-1.3.1/lemon/arg_parser.cc
diff --git a/extern/quadriflow/src/config.hpp b/extern/quadriflow/src/config.hpp
index 842b885a209..bf597ad0f39 100644
--- a/extern/quadriflow/src/config.hpp
+++ b/extern/quadriflow/src/config.hpp
@@ -1,6 +1,11 @@
#ifndef CONFIG_H_
#define CONFIG_H_
+/* Workaround a bug in boost 1.68, until we upgrade to a newer version. */
+#if defined(__clang__) && defined(WIN32)
+ #include <boost/type_traits/is_assignable.hpp>
+ using namespace boost;
+#endif
// Move settings to cmake to make CMake happy :)
// #define WITH_SCALE