1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use cross compiling settings as fake.rb for snapshots

This commit is contained in:
Nobuyoshi Nakada 2022-09-05 11:09:24 +09:00
parent 68a092a469
commit 85a483169f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -436,7 +436,7 @@ def package(vcs, rev, destdir, tmp = nil)
# use fallback file # use fallback file
end end
clean.create("config.status", status) clean.create("config.status", status)
clean.create("noarch-fake.rb") clean.create("noarch-fake.rb", "require_relative 'cross'\n")
FileUtils.mkpath(hdrdir = "#{extout}/include/ruby") FileUtils.mkpath(hdrdir = "#{extout}/include/ruby")
File.binwrite("#{hdrdir}/config.h", "") File.binwrite("#{hdrdir}/config.h", "")
FileUtils.mkpath(defaults = "#{extout}/rubygems/defaults") FileUtils.mkpath(defaults = "#{extout}/rubygems/defaults")