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
View
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}\""
end
end
end.flatten.compact

3 comments on commit eabb31c

@lrz
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.

@ferrous26
MacRuby member

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

@Watson1978
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.