Skip to content

Commit 6f453e8

Browse files
committed
Patch rake-compiler-dock to work around rubyspec-capiext
see https://bugs.ruby-lang.org/issues/21792
1 parent 68f8d07 commit 6f453e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/tasks/bin/cross-ruby.rake b/tasks/bin/cross-ruby.rake
2+
index 3d23eed6..904c12e0 100644
3+
--- a/tasks/bin/cross-ruby.rake
4+
+++ b/tasks/bin/cross-ruby.rake
5+
@@ -150,6 +150,11 @@
6+
7+
# make
8+
file "#{build_dir}/ruby.exe" => ["#{build_dir}/Makefile"] do |t|
9+
+ if ruby_cc_version.start_with?("ruby-4.0")
10+
+ # https://bugs.ruby-lang.org/issues/21792 - hopefully will be fixed by 4.0.0 final
11+
+ FileUtils.rm_f("#{USER_HOME}/sources/#{ruby_cc_version}/spec/ruby/optional/capi/ext/digest_spec.c")
12+
+ end
13+
+
14+
if ruby_cc_version.start_with?("ruby-3.1") && mingw_target =~ /darwin/
15+
# for later 3.1.x releases, we need to explicitly build miniruby
16+
# see https://bugs.ruby-lang.org/issues/19239

0 commit comments

Comments
 (0)