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

* tool/config.sub: add mingw64.

* win32/mkexports.rb (Exports::Mingw64): added.

* win32/mkexports.rb (Exports::Mingw32): renamed from Exports::Mingw.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
wanabe 2010-09-23 09:59:38 +00:00
parent e1819967a8
commit d06f38c6b9
3 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,11 @@
Thu Sep 23 18:54:39 2010 wanabe <s.wanabe@gmail.com>
* 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@ruby-lang.org> Thu Sep 23 09:01:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* vm_insnhelper.c (vm_cref_push): no outer cref is needed for proc * vm_insnhelper.c (vm_cref_push): no outer cref is needed for proc

6
tool/config.sub vendored
View file

@ -723,6 +723,10 @@ case $basic_machine in
basic_machine=i386-pc basic_machine=i386-pc
os=-mingw32 os=-mingw32
;; ;;
mingw64)
basic_machine=i386-pc
os=-mingw64
;;
mingw32ce) mingw32ce)
basic_machine=arm-unknown basic_machine=arm-unknown
os=-mingw32ce os=-mingw32ce
@ -1276,7 +1280,7 @@ case $os in
| -chorusos* | -chorusrdb* | -cegcc* \ | -chorusos* | -chorusrdb* | -cegcc* \
| -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
| -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
| -uxpv* | -beos* | -mpeix* | -udk* \ | -uxpv* | -beos* | -mpeix* | -udk* | -mingw64* \
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
| -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \

View file

@ -149,7 +149,7 @@ class Exports::Cygwin < Exports
end end
end end
class Exports::Mingw < Exports::Cygwin class Exports::Mingw32 < Exports::Cygwin
def each_export(objs) def each_export(objs)
super super
yield "strcasecmp", "_stricmp" yield "strcasecmp", "_stricmp"
@ -157,6 +157,17 @@ class Exports::Mingw < Exports::Cygwin
end end
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 { END {
exports = Exports.extract(ARGV) exports = Exports.extract(ARGV)
Exports.output {|f| f.puts(*exports)} Exports.output {|f| f.puts(*exports)}