Bug 1371190 - (Rebase)Bug 1363216 Turn off std::future for MinGW draft
authorTom Ritter <tom@mozilla.com>
Mon, 08 May 2017 16:52:15 -0500
changeset 673343 bda389d3edb1d7a0ee40a30c4c72ecf5e810dbdc
parent 673342 a1b0c0efa9378118c1419896344dc830bb71797d
child 673344 10450d063b5773d11ac6d9ed6e1deea1f6069cbd
push id82540
push userbmo:cleu@mozilla.com
push dateMon, 02 Oct 2017 10:12:46 +0000
bugs1371190, 1363216, 1349912
milestone58.0a1
Bug 1371190 - (Rebase)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 --HG-- extra : rebase_source : 152d1b88e602b430a4eaf4e5212f90d756ca8a46
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_