Merge pull request #1997 from kyab/fix-make_test-fail-without-gems

Fix build fail for 'make test' with no mrbgems
This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-04-03 19:43:01 +09:00
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -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|
+2
View File
@@ -0,0 +1,2 @@
#dummy