Skip to content

Commit

Permalink
fix(temp): rake-compiler explicitly builds miniruby first
Browse files Browse the repository at this point in the history
See ruby/ruby@50d81bf for the upstream
change that uses miniruby to resolve symbols.

This should either be fixed upstream in rake-compiler or in Ruby's
build system, not sure which.
  • Loading branch information
flavorjones committed Dec 15, 2022
1 parent efd8f9a commit 849b347
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build/patches2/rake-compiler-1.1.6/0005-make-miniruby.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/tasks/bin/cross-ruby.rake b/tasks/bin/cross-ruby.rake
index 8317a2a..d9bfe4c 100644
--- a/tasks/bin/cross-ruby.rake
+++ b/tasks/bin/cross-ruby.rake
@@ -129,6 +129,7 @@

# make
file "#{build_dir}/ruby.exe" => ["#{build_dir}/Makefile"] do |t|
+ sh "#{MAKE} miniruby", chdir: File.dirname(t.prerequisites.first)
sh MAKE, chdir: File.dirname(t.prerequisites.first)
end

0 comments on commit 849b347

Please sign in to comment.