From b4766a4d9ee5dca0d9491ae320131f065242b574 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 20 Oct 2018 14:07:59 +0000 Subject: support --disable-mjit-support on mswin32/64. * win32/configure.bat: add --enable/disable-mjit-support configure.bat options. * win32/setup.mak: ditto. * win32/Makefile.sub: ditto. * win32/Makefile.sub: fix typo for congig.status file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 6 +++++- win32/configure.bat | 12 ++++++++++++ win32/setup.mak | 3 +++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 1af689f7dc..f81af2d55c 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -864,7 +864,11 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub #define RUBY_COREDLL "$(RT)" #define RUBY_PLATFORM "$(arch)" #define RUBY_SITEARCH "$(sitearch)" +!if "$(MJIT_SUPPORT)" == "yes" #define USE_MJIT 1 +!else +#define USE_MJIT 0 +!endif #endif /* $(guard) */ << @@ -1053,7 +1057,7 @@ s,@srcdir@,$(srcdir),;t t s,@top_srcdir@,$(srcdir),;t t s,@try_header@,try_compile,;t t s,@ruby_pc@,$(ruby_pc),;t t -s,@MJIT_SUPPORT,$(MJIT_SUPPORT),;t t +s,@MJIT_SUPPORT@,$(MJIT_SUPPORT),;t t <>confargs.tmp %1 \ shift goto :loop ; +:enable-mjit-support + echo>> ~tmp~.mak "MJIT_SUPPORT=yes" \ + echo>>confargs.tmp %1 \ + shift +goto :loop ; +:disable-mjit-support + echo>> ~tmp~.mak "MJIT_SUPPORT=no" \ + echo>>confargs.tmp %1 \ + shift +goto :loop ; :ntver echo>> ~tmp~.mak "NTVER=%~2" \ echo>>confargs.tmp %1=%2 \ diff --git a/win32/setup.mak b/win32/setup.mak index 9e00ccc118..8caafa4eea 100644 --- a/win32/setup.mak +++ b/win32/setup.mak @@ -60,6 +60,9 @@ USE_RUBYGEMS = $(USE_RUBYGEMS) !if defined(ENABLE_DEBUG_ENV) ENABLE_DEBUG_ENV = $(ENABLE_DEBUG_ENV) !endif +!if defined(MJIT_SUPPORT) +MJIT_SUPPORT = $(MJIT_SUPPORT) +!endif # TOOLS << -- cgit v1.2.3