diff --git a/util/build.c b/util/build.c index 8d31200..44b4d6b 100644 --- a/util/build.c +++ b/util/build.c @@ -392,7 +392,12 @@ void BuildUtilities() { } BUILD_UTILITY("render_svg", "-lm", ""); +#ifdef __MSYS__ + // On MSYS/Windows parallel build gets often hung/deadlocked + BUILD_UTILITY("build_core", "-pthread", ""); +#else BUILD_UTILITY("build_core", "-pthread -DPARALLEL_BUILD", ""); +#endif } void Build(int optimise, bool compile) {