Skip to content

Commit

Permalink
Add Rake tasks install:debug and install:release
Browse files Browse the repository at this point in the history
  • Loading branch information
peterzhu2118 committed Jan 7, 2025
1 parent 0de72c0 commit 88dacac
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Rake::ExtensionTask.prepend(Module.new do
end
end)

task default: [:"compile:debug", :install]
task default: :"install:debug"

extension_configuration = proc do |ext|
ext.ext_dir = "gc/mmtk"
Expand All @@ -25,8 +25,13 @@ Rake::ExtensionTask.new(:release) do |ext|
ext.instance_variable_set(:@make, ext.send(:make) + " MMTK_BUILD=release")
end

task :install do
FileUtils.mv(Dir.glob("tmp/binaries/*"), RbConfig::CONFIG["modular_gc_dir"])
namespace :install do
install_task = proc do
FileUtils.mv(Dir.glob("tmp/binaries/*"), RbConfig::CONFIG["modular_gc_dir"])
end

task(debug: :"compile:debug", &install_task)
task(release: :"compile:release", &install_task)
end

RUBY_HEADERS = %w[
Expand Down

0 comments on commit 88dacac

Please sign in to comment.