aboutsummaryrefslogtreecommitdiffstats
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/Makefile.sub3
-rw-r--r--win32/setup.mak3
2 files changed, 6 insertions, 0 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 386fcbfd69..ed89832f0e 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -113,6 +113,9 @@ ARCH = $(MACHINE)
!if !defined(DEBUGFLAGS)
DEBUGFLAGS = -Zi
!endif
+!if "$(RUBY_DEVEL)" == "yes"
+DEBUGFLAGS = $(DEBUGFLAGS) -DRUBY_DEVEL=1
+!endif
!if !defined(OPTFLAGS)
!if $(MSC_VER) < 1400
OPTFLAGS = -O2b2xg-
diff --git a/win32/setup.mak b/win32/setup.mak
index 91f8123868..151274781b 100644
--- a/win32/setup.mak
+++ b/win32/setup.mak
@@ -155,6 +155,9 @@ echo RUBY_PROGRAM_VERSION = %ruby_version:""=%
echo MAJOR = %major%
echo MINOR = %minor%
echo TEENY = %teeny%
+#if defined RUBY_PATCHLEVEL && RUBY_PATCHLEVEL < 0
+echo RUBY_DEVEL = yes
+#endif
del %0 & exit
<<