From bedf15c16e67d81236d8a1e39c7e59939ea39f41 Mon Sep 17 00:00:00 2001 From: Laurent Sansonetti Date: Tue, 3 Jan 2012 21:27:14 +0100 Subject: [PATCH] fix build system for ruby 1.8, ruby 1.9.2 and ruby 1.9.3 --- lib/motion/project/builder.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index bce8eebe..9dce4e43 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -120,7 +120,10 @@ module Motion; module Project; end # Start build. - builders.each { |queue, th| th.wakeup } + builders.each do |queue, th| + sleep 0.01 while th.status != 'sleep' + th.wakeup + end builders.each { |queue, th| th.join } # Merge the result (based on build order).