aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub3
-rwxr-xr-xwin32/configure.bat12
2 files changed, 15 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 8cbe212e4a..acfcd1761e 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -584,6 +584,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/Makefile.sub $(win_srcdir)/Makefile.sub
!endif
#define CANONICALIZATION_FOR_MATHN 1
#define DEFAULT_KCODE KCODE_NONE
+!if "$(ENABLE_DEBUG_ENV)" == "yes"
+#define RUBY_DEBUG_ENV 1
+!endif
#define LOAD_RELATIVE 1
#define DLEXT ".so"
#define EXECUTABLE_EXTS $(EXECUTABLE_EXTS)
diff --git a/win32/configure.bat b/win32/configure.bat
index 0401b61dfd..02e85640f0 100755
--- a/win32/configure.bat
+++ b/win32/configure.bat
@@ -27,6 +27,8 @@ if "%1" == "--enable-install-doc" goto :enable-rdoc
if "%1" == "--disable-install-doc" goto :disable-rdoc
if "%1" == "--enable-win95" goto :enable-win95
if "%1" == "--disable-win95" goto :disable-win95
+if "%1" == "--enable-debug-env" goto :enable-debug-env
+if "%1" == "--disable-debug-env" goto :disable-debug-env
if "%1" == "--extout" goto :extout
if "%1" == "--path" goto :path
if "%1" == "--with-baseruby" goto :baseruby
@@ -114,6 +116,16 @@ goto :loop
echo>>confargs.tmp %1 \
shift
goto :loop
+:enable-debug-env
+ echo>> ~tmp~.mak "ENABLE_DEBUG_ENV=yes" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop
+:disable-debug-env
+ echo>> ~tmp~.mak "ENABLE_DEBUG_ENV=no" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop
:ntver
echo>> ~tmp~.mak "NTVER=%2" \
echo>>confargs.tmp %1=%2 \