From 96ce1d9a0ff64494753ad4730f36a0cd7e7a89e7 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 7 Jan 2021 14:55:33 +0900 Subject: rbconfig.rb: extract cpu from RUBY_PLATFORM when universal --- tool/mkconfig.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/mkconfig.rb') diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb index c4f9d5bf2f..fbe4893a06 100755 --- a/tool/mkconfig.rb +++ b/tool/mkconfig.rb @@ -121,7 +121,7 @@ File.foreach "config.status" do |line| universal, val = val, 'universal' if universal when /^arch$/ if universal - val.sub!(/universal/, %q[#{arch && universal[/(?:\A|\s)#{Regexp.quote(arch)}=(\S+)/, 1] || '\&'}]) + val.sub!(/universal/, %q[#{arch && universal[/(?:\A|\s)#{Regexp.quote(arch)}=(\S+)/, 1] || RUBY_PLATFORM[/\A[^-]*/]}]) end when /^oldincludedir$/ val = '"$(SDKROOT)"'+val if /darwin/ =~ arch -- cgit v1.2.1