Fix the condition to detect core mrbgems.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2020-10-30 07:15:11 +09:00
parent e4d4192c3a
commit 6cc29ed377
+2 -2
View File
@@ -81,8 +81,8 @@ module MRuby
@generate_functions = !(@rbfiles.empty? && @objs.empty?)
@objs << objfile("#{build_dir}/gem_init") if @generate_functions
root = MRUBY_ROOT
if @dir[0,root.size] == root
mgem = MRUBY_ROOT+"/mrbgems"
if @dir[0,mgem.size] == mgem
@cdump = true # OK to cdump core mrbgems
else
@cdump = false # use mrb dump by default