Skip to content
Browse files

Don't JIT rubyc during stdlib compilation

This cuts about 1/3 of the stdlib time for me.
  • Loading branch information...
1 parent b6de0c1 commit eabb31c50770c22979477c00536a09bede2ed303 @ferrous26 ferrous26 committed Apr 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 rakelib/builder.rake
2 rakelib/builder.rake
@@ -168,7 +168,7 @@ namespace :stdlib do
Dir.glob(pattern).map do |path|
out = File.join(File.dirname(path), File.basename(path, '.rb') + '.rbo')
if !File.exist?(out) or File.mtime(path) > File.mtime(out) or File.mtime('./miniruby') > File.mtime(out)
- "./miniruby -I. -I./lib bin/rubyc --internal #{archf} -C \"#{path}\" -o \"#{out}\""
+ "VM_OPT_LEVEL=0 ./miniruby -I. -I./lib bin/rubyc --internal #{archf} -C \"#{path}\" -o \"#{out}\""

3 comments on commit eabb31c

MacRuby member
lrz commented on eabb31c Apr 15, 2012

This does not disable the JIT, only the optimizations :) Good catch, we don't need those here.

MacRuby member

Sorry about the technical inaccuracy. (−_−#)

MacRuby member

Great! In my environment also, reduce the compilation time. (..>◡<..) 👍

Please sign in to comment.
Something went wrong with that request. Please try again.