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

ruby-changes:65307

From: Nobuyoshi <ko1@a...>
Date: Sun, 21 Feb 2021 00:11:23 +0900 (JST)
Subject: [ruby-changes:65307] cc8e966e3c (master): MSys is a variant of Cygwin

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

From cc8e966e3c8b44dd946c4c50cc8d172e1d45e625 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 20 Feb 2021 23:33:22 +0900
Subject: MSys is a variant of Cygwin

---
 lib/mkmf.rb        | 2 +-
 win32/mkexports.rb | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 57f6566..1ae9925 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1908,7 +1908,7 @@ SRC https://github.com/ruby/ruby/blob/trunk/lib/mkmf.rb#L1908
         path.sub!(/\A([A-Za-z]):(?=\/)/, '/\1')
         path
       end
-    when 'cygwin'
+    when 'cygwin', 'msys'
       if CONFIG['target_os'] != 'cygwin'
         def mkintpath(path)
           IO.popen(["cygpath", "-u", path], &:read).chomp
diff --git a/win32/mkexports.rb b/win32/mkexports.rb
index dfbb175..3c53521 100755
--- a/win32/mkexports.rb
+++ b/win32/mkexports.rb
@@ -167,6 +167,9 @@ class Exports::Cygwin < Exports https://github.com/ruby/ruby/blob/trunk/win32/mkexports.rb#L167
   end
 end
 
+class Exports::Msys < Exports::Cygwin
+end
+
 class Exports::Mingw < Exports::Cygwin
   def each_export(objs)
     super
-- 
cgit v1.1


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

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