Skip to content
This repository
Browse code

Don't JIT rubyc during stdlib compilation

This cuts about 1/3 of the stdlib time for me.
  • Loading branch information...
commit eabb31c50770c22979477c00536a09bede2ed303 1 parent b6de0c1
Mark Rada ferrous26 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  rakelib/builder.rake
2  rakelib/builder.rake
@@ -168,7 +168,7 @@ namespace :stdlib do
168 168 Dir.glob(pattern).map do |path|
169 169 out = File.join(File.dirname(path), File.basename(path, '.rb') + '.rbo')
170 170 if !File.exist?(out) or File.mtime(path) > File.mtime(out) or File.mtime('./miniruby') > File.mtime(out)
171   - "./miniruby -I. -I./lib bin/rubyc --internal #{archf} -C \"#{path}\" -o \"#{out}\""
  171 + "VM_OPT_LEVEL=0 ./miniruby -I. -I./lib bin/rubyc --internal #{archf} -C \"#{path}\" -o \"#{out}\""
172 172 end
173 173 end
174 174 end.flatten.compact

3 comments on commit eabb31c

Laurent Sansonetti
Owner
lrz commented on eabb31c

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

Mark Rada
Owner

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

Watson
Owner

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

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