diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-09-06 22:06:35 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-09-06 22:06:35 +0200 |
commit | 6384c5db8dda70076c878d393ba19a1510695228 (patch) | |
tree | d58c7b41c533e597255fc6ff73c8e2a2200c9f9a /src/Make_mvc.mak | |
parent | 100f5c90f4d4fb40bc3aeabc35192db371f5988f (diff) |
patch 7.4.2340v7.4.2340
Problem: MS-Windows: Building with Ruby uses old version.
Solution: Update to 2.2.X. Use clearer name for the API version. (Ken
Takata)
Diffstat (limited to 'src/Make_mvc.mak')
-rw-r--r-- | src/Make_mvc.mak | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak index 453ccd94f4..23f5f82774 100644 --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -67,13 +67,13 @@ # Ruby interface: # RUBY=[Path to Ruby directory] # DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically) -# RUBY_VER=[Ruby version, eg 18, 19, 20] (default is 18) -# RUBY_VER_LONG=[Ruby version, eg 1.8, 1.9.1, 2.0.0] (default is 1.8) -# You must set RUBY_VER_LONG when change RUBY_VER. -# RUBY_API_VER is derived from RUBY_VER_LONG. +# RUBY_VER=[Ruby version, eg 19, 22] (default is 22) +# RUBY_API_VER_LONG=[Ruby API version, eg 1.8, 1.9.1, 2.2.0] +# (default is 2.2.0) +# You must set RUBY_API_VER_LONG when change RUBY_VER. # Note: If you use Ruby 1.9.3, set as follows: # RUBY_VER=19 -# RUBY_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.) +# RUBY_API_VER_LONG=1.9.1 (not 1.9.3, because the API version is 1.9.1.) # # Tcl interface: # TCL=[Path to Tcl directory] @@ -917,13 +917,16 @@ XSUBPP_TYPEMAP = $(PERL)\lib\ExtUtils\typemap !ifdef RUBY # Set default value !ifndef RUBY_VER -RUBY_VER = 18 +RUBY_VER = 22 !endif !ifndef RUBY_VER_LONG -RUBY_VER_LONG = 1.8 +RUBY_VER_LONG = 2.2.0 +!endif +!ifndef RUBY_API_VER_LONG +RUBY_API_VER_LONG = $(RUBY_VER_LONG) !endif !ifndef RUBY_API_VER -RUBY_API_VER = $(RUBY_VER_LONG:.=) +RUBY_API_VER = $(RUBY_API_VER_LONG:.=) !endif !if $(RUBY_VER) >= 18 @@ -966,9 +969,9 @@ RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER) CFLAGS = $(CFLAGS) -DFEAT_RUBY RUBY_OBJ = $(OUTDIR)\if_ruby.obj !if $(RUBY_VER) >= 19 -RUBY_INC = /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)" +RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_API_VER_LONG)" /I "$(RUBY)\include\ruby-$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)" !else -RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" +RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_API_VER_LONG)\$(RUBY_PLATFORM)" !endif RUBY_LIB = $(RUBY)\lib\$(RUBY_INSTALL_NAME).lib # Do we want to load Ruby dynamically? |