summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authormimaki <[email protected]>2014-11-18 23:33:32 +0900
committermimaki <[email protected]>2014-11-18 23:33:32 +0900
commite5bacc03f20c3be5006f0283200b48a15ff699b7 (patch)
tree90ad5e37d5312cd2c4cb5fd2f9acf0ca2e6d5f39 /Rakefile
parent4c7e812bc06ab5ed4d9220397998de9728ee2d7e (diff)
downloadmruby-e5bacc03f20c3be5006f0283200b48a15ff699b7.tar.gz
mruby-e5bacc03f20c3be5006f0283200b48a15ff699b7.zip
Add mruby debugger (mrdb)
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 135c7a6a2..cc6ded8d0 100644
--- a/Rakefile
+++ b/Rakefile
@@ -75,6 +75,16 @@ MRuby.each_target do |target|
FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose }
end
depfiles += [ install_path ]
+ elsif target == MRuby.targets['host-debug']
+ unless MRuby.targets['host'].gems.map {|g| g.bins}.include?([bin])
+ install_path = MRuby.targets['host-debug'].exefile("#{MRUBY_ROOT}/bin/#{bin}")
+
+ file install_path => exec do |t|
+ FileUtils.rm_f t.name, { :verbose => $verbose }
+ FileUtils.cp t.prerequisites.first, t.name, { :verbose => $verbose }
+ end
+ depfiles += [ install_path ]
+ end
else
depfiles += [ exec ]
end