File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ load "#{mruby_root}/Rakefile"
1515
1616desc "compile all the binaries"
1717task :compile => [ :mruby , :all ] do
18- %W( #{ MRUBY_ROOT } /build/host/bin/#{ APP_NAME } #{ MRUBY_ROOT } /build/i686-pc-linux-gnu/#{ APP_NAME } ") . each do |bin |
18+ %W( #{ mruby_root } /build/host/bin/#{ APP_NAME } #{ mruby_root } /build/i686-pc-linux-gnu/#{ APP_NAME } ") . each do |bin |
1919 sh "strip --strip-unneeded #{ bin } " if File . exist? ( bin )
2020 end
2121end
@@ -25,8 +25,8 @@ namespace :test do
2525 # only build mtest for host
2626 task :mtest => [ :compile ] + MRuby . targets . values . map { |t | t . build_mrbtest_lib_only? ? nil : t . exefile ( "#{ t . build_dir } /test/mrbtest" ) } . compact do
2727 # in order to get mruby/test/t/synatx.rb __FILE__ to pass,
28- # we need to make sure the tests are built relative from MRUBY_ROOT
29- load "#{ MRUBY_ROOT } /test/mrbtest.rake"
28+ # we need to make sure the tests are built relative from mruby_root
29+ load "#{ mruby_root } /test/mrbtest.rake"
3030 MRuby . each_target do |target |
3131 # only run unit tests here
3232 target . enable_bintest = false
Original file line number Diff line number Diff line change @@ -308,7 +308,7 @@ def rakefile
308308
309309desc "compile binary"
310310task :compile => [:mruby, :all] do
311- %W(\# {MRUBY_ROOT }/build/host/bin/\# {APP_NAME} \# {MRUBY_ROOT }/build/i686-pc-linux-gnu/\# {APP_NAME}").each do |bin|
311+ %W(\# {mruby_root }/build/host/bin/\# {APP_NAME} \# {mruby_root }/build/i686-pc-linux-gnu/\# {APP_NAME}").each do |bin|
312312 sh "strip --strip-unneeded \# {bin}" if File.exist?(bin)
313313 end
314314end
@@ -317,10 +317,10 @@ def rakefile
317317 desc "run mruby & unit tests"
318318 # only build mtest for host
319319 task :mtest => [:compile] + MRuby.targets.values.map {|t| t.build_mrbtest_lib_only? ? nil : t.exefile("\# {t.build_dir}/test/mrbtest") }.compact do
320- # mruby-io tests expect to be in MRUBY_ROOT
320+ # mruby-io tests expect to be in mruby_root
321321 # in order to get mruby/test/t/synatx.rb __FILE__ to pass,
322- # we need to make sure the tests are built relative from MRUBY_ROOT
323- load "\# {MRUBY_ROOT }/test/mrbtest.rake"
322+ # we need to make sure the tests are built relative from mruby_root
323+ load "\# {mruby_root }/test/mrbtest.rake"
324324 MRuby.each_target do |target|
325325 # only run unit tests here
326326 target.enable_bintest = false
You can’t perform that action at this time.
0 commit comments