diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-12 02:59:11 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-12 02:59:11 +0000 |
commit | edeba4dbe6fac8e5693b8e5bff12f09a93d22999 (patch) | |
tree | 6ea8dc83b6547071d26ab26f5d394035ff8cb036 | |
parent | 2a5aa8cdaa3343b8b9af17c3cdb827d6bae59dcc (diff) | |
download | ruby-edeba4dbe6fac8e5693b8e5bff12f09a93d22999.tar.gz |
* win32/setup.mak: support x86-amd64 cross compile environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | win32/setup.mak | 10 |
2 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,7 @@ +Tue Jul 12 11:58:28 2011 NAKAMURA Usaku <usa@ruby-lang.org> + + * win32/setup.mak: support x86-amd64 cross compile environment. + Mon Jul 11 23:22:28 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org> * time.c: can't compile time.c on AIX due to missing declaration for diff --git a/win32/setup.mak b/win32/setup.mak index 0733e99bbb..0d9990ae8e 100644 --- a/win32/setup.mak +++ b/win32/setup.mak @@ -204,6 +204,16 @@ RUBY_SO_NAME = $(RUBY_SO_NAME) $(ARCH) = x64 !elseif "$(PROCESSOR_ARCHITECTURE)" == "IA64" $(ARCH) = ia64 +!elseif defined(PROCESSOR_ARCHITEW6432) +$(BANG)if "$$(TARGET_OS)" == "mswin64" +!if "$(PROCESSOR_ARCHITECTURE)" == "IA64" +$(ARCH) = ia64 +!else +$(ARCH) = x64 +!endif +$(BANG)else +$(ARCH) = $(PROCESSOR_ARCHITECTURE) +$(BANG)endif !else $(ARCH) = $(PROCESSOR_ARCHITECTURE) !endif |