Skip to content
Browse files

Merge pull request #3101 from deuwert/fix-test-build

Fix bug in mruby-test gem (fix #3094)
  • Loading branch information...
2 parents 60c1ed4 + 5976185 commit 74d52a11f2c88948c89b5ccd40c319d549082d50 @matz matz committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 mrbgems/mruby-test/mrbgem.rake
View
13 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}"

0 comments on commit 74d52a1

Please sign in to comment.
Something went wrong with that request. Please try again.