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

ruby-changes:17316

From: wanabe <ko1@a...>
Date: Thu, 23 Sep 2010 18:59:46 +0900 (JST)
Subject: [ruby-changes:17316] Ruby:r29320 (trunk): * tool/config.sub: add mingw64.

wanabe	2010-09-23 18:59:38 +0900 (Thu, 23 Sep 2010)

  New Revision: 29320

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29320

  Log:
    * tool/config.sub: add mingw64.
    
    * win32/mkexports.rb (Exports::Mingw64): added.
    
    * win32/mkexports.rb (Exports::Mingw32): renamed from Exports::Mingw.

  Modified files:
    trunk/ChangeLog
    trunk/tool/config.sub
    trunk/win32/mkexports.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29319)
+++ ChangeLog	(revision 29320)
@@ -1,3 +1,11 @@
+Thu Sep 23 18:54:39 2010  wanabe  <s.wanabe@g...>
+
+	* tool/config.sub: add mingw64.
+
+	* win32/mkexports.rb (Exports::Mingw64): added.
+
+	* win32/mkexports.rb (Exports::Mingw32): renamed from Exports::Mingw.
+  
 Thu Sep 23 09:01:28 2010  Nobuyoshi Nakada  <nobu@r...>
 
 	* vm_insnhelper.c (vm_cref_push): no outer cref is needed for proc
Index: win32/mkexports.rb
===================================================================
--- win32/mkexports.rb	(revision 29319)
+++ win32/mkexports.rb	(revision 29320)
@@ -149,7 +149,7 @@
   end
 end
 
-class Exports::Mingw < Exports::Cygwin
+class Exports::Mingw32 < Exports::Cygwin
   def each_export(objs)
     super
     yield "strcasecmp", "_stricmp"
@@ -157,6 +157,17 @@
   end
 end
 
+class Exports::Mingw64 < Exports::Cygwin
+  def each_export(objs)
+    objdump(objs) do |l|
+      next if /@.*@/ =~ l
+      yield $2, !$1 if /\s(?:(T)|[[:upper:]])\s_?((?!Init_|.*_threadptr_|DllMain[@\n]).*)$/ =~ l
+    end
+    yield "strcasecmp", "_stricmp"
+    yield "strncasecmp", "_strnicmp"
+  end
+end
+
 END {
   exports = Exports.extract(ARGV)
   Exports.output {|f| f.puts(*exports)}
Index: tool/config.sub
===================================================================
--- tool/config.sub	(revision 29319)
+++ tool/config.sub	(revision 29320)
@@ -723,6 +723,10 @@
 		basic_machine=i386-pc
 		os=-mingw32
 		;;
+	mingw64)
+		basic_machine=i386-pc
+		os=-mingw64
+		;;
 	mingw32ce)
 		basic_machine=arm-unknown
 		os=-mingw32ce
@@ -1276,7 +1280,7 @@
 	      | -chorusos* | -chorusrdb* | -cegcc* \
 	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
 	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
-	      | -uxpv* | -beos* | -mpeix* | -udk* \
+	      | -uxpv* | -beos* | -mpeix* | -udk* | -mingw64* \
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \

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

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