summaryrefslogtreecommitdiff
path: root/src/Make_ming.mak
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-11-28 16:18:29 +0100
committerBram Moolenaar <Bram@vim.org>2012-11-28 16:18:29 +0100
commitdd53a4155311b43f06d9d01ad660be193dc4c0f2 (patch)
tree397b1e040a354186a4a5033503f0ca3b36c0e258 /src/Make_ming.mak
parent442b5c48fd27f88357dedc3161bde01b5d99e0d2 (diff)
downloadvim-git-dd53a4155311b43f06d9d01ad660be193dc4c0f2.tar.gz
updated for version 7.3.735v7.3.735
Problem: Cannot build Ruby 1.9 with MingW or Cygwin. Solution: Add another include directory. (Ken Takata)
Diffstat (limited to 'src/Make_ming.mak')
-rw-r--r--src/Make_ming.mak9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/Make_ming.mak b/src/Make_ming.mak
index 8e523a24e..9402ccce7 100644
--- a/src/Make_ming.mak
+++ b/src/Make_ming.mak
@@ -301,7 +301,14 @@ RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
endif
endif
-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 (19, $(word 1,$(sort 19 $(RUBY_VER))))
+RUBY_19_OR_LATER = 1
+endif
+
+RUBYINC = -I $(RUBY)/lib/ruby/$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
+ifdef RUBY_19_OR_LATER
+RUBYINC += -I $(RUBY)/include/ruby-$(RUBY_VER_LONG) -I $(RUBY)/include/ruby-$(RUBY_VER_LONG)/$(RUBY_PLATFORM)
+endif
ifeq (no, $(DYNAMIC_RUBY))
RUBYLIB = -L$(RUBY)/lib -l$(RUBY_INSTALL_NAME)
endif