mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix build fail for 'make test' with no mrbgems
This commit is contained in:
@@ -111,6 +111,10 @@ MRuby.each_target do
|
||||
no_mrb_open_test_rbfiles = no_mrb_open_test_gem.reduce([]) { |res, v|
|
||||
res += v.test_rbfiles
|
||||
}
|
||||
if no_mrb_open_test_rbfiles.empty?
|
||||
no_mrb_open_test_rbfiles << "#{MRUBY_ROOT}/test/no_mrb_open_test_dummy.rb"
|
||||
end
|
||||
|
||||
file "#{no_mrb_open_test}.o" => "#{no_mrb_open_test}.c"
|
||||
file "#{no_mrb_open_test}.c" => no_mrb_open_test_rbfiles do |t|
|
||||
open(t.name, 'w') do |f|
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
#dummy
|
||||
|
||||
Reference in New Issue
Block a user