diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-21 04:34:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-06-21 04:34:25 +0000 |
commit | 6af650256b38581ae396b8fb004d254856c48d89 (patch) | |
tree | d2e11fe1097fa2af4f3494c6612e4ec73a3c9647 /win32 | |
parent | 5682bfe2d9912055811697c569638423ae0e318a (diff) |
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
Diffstat (limited to 'win32')
-rw-r--r-- | win32/Makefile.sub | 3 | ||||
-rw-r--r-- | win32/setup.mak | 3 |
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 << |