Commit 237feb7d authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2014 from kyab/fix_msvc_build_test

Fix 'make test' fail to build on Windows(MSVC)
parents 4f3f22ec 0ad9b900
......@@ -115,7 +115,8 @@ MRuby.each_target do
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"
no_mrb_open_test_lib = no_mrb_open_test.ext(exts.object)
file no_mrb_open_test_lib => "#{no_mrb_open_test}.c"
file "#{no_mrb_open_test}.c" => no_mrb_open_test_rbfiles do |t|
open(t.name, 'w') do |f|
f.puts %Q[/*]
......
......@@ -16,7 +16,7 @@ MRuby.each_target do
file mrbtest_lib => [mlib, ass_lib, gems.map(&:test_objs), gem_test_files].flatten do |t|
archiver.run t.name, t.prerequisites
end
file mrbtest_lib => "#{build_dir}/test/no_mrb_open_test.o"
file mrbtest_lib => "#{build_dir}/test/no_mrb_open_test.c".ext(exts.object)
unless build_mrbtest_lib_only?
driver_obj = objfile("#{current_build_dir}/driver")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment