From 6af650256b38581ae396b8fb004d254856c48d89 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 21 Jun 2017 04:34:25 +0000 Subject: RUBY_DEVEL flag * configure.in: define RUBY_DEVEL only in the trunk. * gc.c: enable runtime rgengc debug if RUBY_DEVEL * ruby.c (debug_option): enable RUBY_DEBUG in --debug option only if RUBY_DEVEL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59131 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/Makefile.sub | 3 +++ win32/setup.mak | 3 +++ 2 files changed, 6 insertions(+) (limited to 'win32') 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 << -- cgit v1.2.3