mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user