summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-02-12 08:27:55 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-02-12 08:27:55 +0900
commit74d52a11f2c88948c89b5ccd40c319d549082d50 (patch)
treede6f88b543accc43bb235dc8480394792ffda423
parent60c1ed4461344ceed82e001c7748965deeb4e586 (diff)
parent5976185c0a62e632469a893705bfe2fa41f8931a (diff)
downloadmruby-74d52a11f2c88948c89b5ccd40c319d549082d50.tar.gz
mruby-74d52a11f2c88948c89b5ccd40c319d549082d50.zip
Merge pull request #3101 from deuwert/fix-test-build
Fix bug in mruby-test gem (fix #3094)
-rw-r--r--mrbgems/mruby-test/mrbgem.rake13
1 files changed, 13 insertions, 0 deletions
diff --git a/mrbgems/mruby-test/mrbgem.rake b/mrbgems/mruby-test/mrbgem.rake
index 298097f62..ae4c2f131 100644
--- a/mrbgems/mruby-test/mrbgem.rake
+++ b/mrbgems/mruby-test/mrbgem.rake
@@ -146,6 +146,19 @@ MRuby::Gem::Specification.new('mruby-test') do |spec|
end
init = "#{spec.dir}/init_mrbtest.c"
+
+ # store the last gem selection and make the re-build
+ # of the test gem depending on a change to the gem
+ # selection
+ active_gems = "#{build_dir}/active_gems.lst"
+ FileUtils.mkdir_p File.dirname(active_gems)
+ open(active_gems, 'w+') do |f|
+ build.gems.each do |g|
+ f.puts g.name
+ end
+ end
+ file clib => active_gems
+
file mlib => clib
file clib => init do |t|
_pp "GEN", "*.rb", "#{clib.relative_path}"