Bug 1363216 Turn off std::future for MinGW draft
authorTom Ritter <tom@mozilla.com>
Mon, 08 May 2017 16:52:15 -0500
changeset 574453 2db3aa241b29d705f5103e80c0bfddc3c757a5ff
parent 568807 a477e80f03b61be9961bc61770a2b55cce139b91
child 627605 037892d336b79ed22ebaa15d68d9337d77184bfc
push id57719
push userbmo:tom@mozilla.com
push dateMon, 08 May 2017 21:53:10 +0000
bugs1363216, 1349912
milestone55.0a1
Bug 1363216 Turn off std::future for MinGW MinGW doesn't support std::thread without an emulation library (See Bug 1349912) We haven't integrated that (yet) so disable std::future for Angle until we do. MozReview-Commit-ID: 7hxDL3QURdW
gfx/angle/src/libANGLE/features.h
--- a/gfx/angle/src/libANGLE/features.h
+++ b/gfx/angle/src/libANGLE/features.h
@@ -50,16 +50,16 @@
 // DISABLED allow precision for uniforms to differ between vertex and fragment shaders
 #if !defined(ANGLE_PROGRAM_LINK_VALIDATE_UNIFORM_PRECISION)
 #define ANGLE_PROGRAM_LINK_VALIDATE_UNIFORM_PRECISION ANGLE_ENABLED
 #endif
 
 // Controls if our threading code uses std::async or falls back to single-threaded operations.
 // TODO(jmadill): Enable on Linux once STL chrono headers are updated.
 #if !defined(ANGLE_STD_ASYNC_WORKERS)
-#if defined(ANGLE_PLATFORM_WINDOWS)
+#if !defined(__MINGW32__) && defined(ANGLE_PLATFORM_WINDOWS)
 #define ANGLE_STD_ASYNC_WORKERS ANGLE_ENABLED
 #else
 #define ANGLE_STD_ASYNC_WORKERS ANGLE_DISABLED
 #endif  // defined(ANGLE_PLATFORM_WINDOWS)
 #endif  // !defined(ANGLE_STD_ASYNC_WORKERS)
 
 #endif // LIBANGLE_FEATURES_H_