summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-05 13:08:23 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-05 13:08:23 +0900
commit4d469472e2fda05cbdef98ce2a1fe945f2355f51 (patch)
tree461c8a8b51b298b605d8ba13c24d593d5b1b9da5
parent45fe7f757522ed7d1d3ec754da59d41d45dd6bab (diff)
Debugging snapshot [ci skip]
-rw-r--r--template/fake.rb.in6
-rwxr-xr-xtool/make-snapshot1
2 files changed, 4 insertions, 3 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index aff9bbb375..1ad4943b04 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -21,10 +21,10 @@ end
arg['versions'] = version = {}
File.read(File.join(arg['srcdir'], 'version.c')).
scan(/rb_define_global_const\("(RUBY_\w+)",[^;]*?\bMK(?:INT|(STR))\(([^()]*)\)/m) do |n, s, v|
- version[n] = arg[v] || src.value(v) || (s ? "" : 0)
+ version[n] = arg[v] || src.value(v) || (s ? v : 0)
end
-arg['RUBY_DESCRIPTION_WITH_MJIT'] = src.value('description_with_mjit') || version['RUBY_DESCRIPTION']
-arg['RUBY_DESCRIPTION_WITH_YJIT'] = src.value('description_with_yjit') || version['RUBY_DESCRIPTION']
+arg['RUBY_DESCRIPTION_WITH_MJIT'] = src.value('description_with_mjit') || 'description_with_mjit'
+arg['RUBY_DESCRIPTION_WITH_YJIT'] = src.value('description_with_yjit') || 'description_with_yjit'
%>baseruby="<%=arg['BASERUBY']%>"
_\
=begin
diff --git a/tool/make-snapshot b/tool/make-snapshot
index a54f254dc2..b88bcdc297 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -416,6 +416,7 @@ def package(vcs, rev, destdir, tmp = nil)
f.puts "Object.__send__(:remove_const, :RUBY_VERSION)"
f.puts "RUBY_VERSION='#{version}'"
end
+ warn "cross.rb:", File.read("cross.rb").gsub(/^/, "> "), ""
unless File.exist?("configure")
print "creating configure..."
unless system([ENV["AUTOCONF"]]*2)