Rakefile: make the whole thing parallel unless SERIAL=1

Goes from 36s to 16s on my system (from clean):
```
$ 2>&1 time -p rake -m       | rg real
real 14.72
$ 2>&1 time -p rake          | rg real
real 14.72
$ 2>&1 time -p rake SERIAL=1 | rg real
real 37.49
```
This commit is contained in:
Ryan Davis
2025-08-26 13:33:33 +01:00
parent 6b6aa830fd
commit fc624020e6
+1
View File
@@ -4,6 +4,7 @@ MRUBY_ROOT = File.dirname(File.expand_path(__FILE__))
MRUBY_BUILD_HOST_IS_CYGWIN = RUBY_PLATFORM.include?('cygwin')
MRUBY_BUILD_HOST_IS_OPENBSD = RUBY_PLATFORM.include?('openbsd')
Rake.application.options.always_multitask = true unless ENV["SERIAL"]
Rake.verbose(false) if Rake.verbose == Rake::DSL::DEFAULT
$LOAD_PATH << File.join(MRUBY_ROOT, "lib")