From e29c20aacd99414a211a7f5af556e9d6d1e4753d Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 17 Oct 2017 20:44:16 +0200 Subject: [PATCH] don't enable parallel builds with older versions of rake At least rake 10.1.x has a bug in that it runs all jobs in parallel disregarding the maximum number of jobs causing massive memory usage, hence swap usage. --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 14db29dd9..99311e46c 100644 --- a/Rakefile +++ b/Rakefile @@ -26,7 +26,7 @@ end # For newer rake turn on parallel processing, too. Newer rake versions # use an OpenStruct, though, so testing with responds_to? won't work. version = Rake::VERSION.gsub(%r{[^0-9\.]+}, "").split(%r{\.}).map(&:to_i) -if (version[0] > 10) || ((version[0] == 10) && (version[1] >= 1)) +if (version[0] > 10) || ((version[0] == 10) && (version[1] >= 3)) Rake.application.options.always_multitask = true end