summaryrefslogtreecommitdiffhomepage
path: root/tasks
diff options
context:
space:
mode:
authorkyab <[email protected]>2014-04-03 19:39:25 +0900
committerkyab <[email protected]>2014-04-03 19:39:25 +0900
commitad6fa200e204c58c2af40e94e90a81a2a683a7c6 (patch)
tree54a2fa0c61b264e6b779109104011335d89ac983 /tasks
parentf67038a11b5909c8df93ba9d04fa5fa9f2089025 (diff)
downloadmruby-ad6fa200e204c58c2af40e94e90a81a2a683a7c6.tar.gz
mruby-ad6fa200e204c58c2af40e94e90a81a2a683a7c6.zip
Fix build fail for 'make test' with no mrbgems
Diffstat (limited to 'tasks')
-rw-r--r--tasks/mrbgems_test.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/tasks/mrbgems_test.rake b/tasks/mrbgems_test.rake
index 4c27686f2..b29a57f3d 100644
--- a/tasks/mrbgems_test.rake
+++ b/tasks/mrbgems_test.rake
@@ -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|