[前][次][番号順一覧][スレッド一覧]

ruby-changes:74348

From: Nobuyoshi <ko1@a...>
Date: Fri, 4 Nov 2022 20:37:29 +0900 (JST)
Subject: [ruby-changes:74348] ed9d761217 (master): mkconfig.rb: take CPU name from arch flag

https://git.ruby-lang.org/ruby.git/commit/?id=ed9d761217

From ed9d7612172e12f515cb79088efe45267a062276 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 4 Nov 2022 18:19:30 +0900
Subject: mkconfig.rb: take CPU name from arch flag

---
 tool/mkconfig.rb | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tool/mkconfig.rb b/tool/mkconfig.rb
index 120b90850d..fb35522401 100755
--- a/tool/mkconfig.rb
+++ b/tool/mkconfig.rb
@@ -124,6 +124,14 @@ File.foreach "config.status" do |line| https://github.com/ruby/ruby/blob/trunk/tool/mkconfig.rb#L124
       if universal
         platform = val.sub(/universal/, %q[#{arch && universal[/(?:\A|\s)#{Regexp.quote(arch)}=(\S+)/, 1] || RUBY_PLATFORM[/\A[^-]*/]}])
       end
+    when /^target_cpu$/
+      if universal
+        val = 'arch'
+      end
+    when /^target$/
+      val = '"$(target_cpu)-$(target_vendor)-$(target_os)"'
+    when /^host(?:_(?:os|vendor|cpu|alias))?$/
+      val = %["$(#{name.sub(/^host/, 'target')})"]
     when /^includedir$/
       val = '"$(SDKROOT)"'+val if /darwin/ =~ arch
     end
-- 
cgit v1.2.3


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]