Mercurial > vim
changeset 2105:8562c6804861 v7.2.388
updated for version 7.2.388
Problem: Ruby with MingW still doesn't build all versions.
Solution: Different approach to build file. (Sergey Khorev)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 10 Mar 2010 13:20:40 +0100 |
parents | 09cc86b66653 |
children | 15674e198164 |
files | src/Make_ming.mak src/version.c |
diffstat | 2 files changed, 11 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/Make_ming.mak +++ b/src/Make_ming.mak @@ -212,23 +212,25 @@ ifndef RUBY_VER_LONG RUBY_VER_LONG = 1.6 endif +ifndef RUBY_PLATFORM ifeq ($(RUBY_VER), 16) -ifndef RUBY_PLATFORM RUBY_PLATFORM = i586-mswin32 -endif -ifndef RUBY_INSTALL_NAME -RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER) -endif +else ifneq ("X$(wildcard, $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/i386-mingw32)", X) +RUBY_PLATFORM = i386-mingw32 else -ifndef RUBY_PLATFORM RUBY_PLATFORM = i386-mswin32 endif +endif + ifndef RUBY_INSTALL_NAME +ifeq ($(RUBY_VER), 16) +RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER) +else RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER) endif endif -RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) +RUBYINC =-I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM) ifeq (no, $(DYNAMIC_RUBY)) RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME) endif