diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-11 11:02:28 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-08-11 11:34:52 +0900 |
commit | 74d95744bdb9cf47b8fa07b9a9938c323658d9b9 (patch) | |
tree | bd62d1f443bdfc266cb9d29c1b3aa059688b5e92 /win32 | |
parent | 9fc401b689e64dde5fc7cc56c734d5cddd6aa6e1 (diff) | |
download | ruby-74d95744bdb9cf47b8fa07b9a9938c323658d9b9.tar.gz |
Add `--enable-devel` configure option
Since `RUBY_DEVEL` in cppflags has no effect in the configure script
and makefiles.
Diffstat (limited to 'win32')
-rwxr-xr-x | win32/configure.bat | 12 | ||||
-rw-r--r-- | win32/setup.mak | 4 |
2 files changed, 15 insertions, 1 deletions
diff --git a/win32/configure.bat b/win32/configure.bat index 573f8bf0e5..4602b41ec5 100755 --- a/win32/configure.bat +++ b/win32/configure.bat @@ -34,6 +34,8 @@ if "%1" == "--enable-install-static-library" goto :enable-lib if "%1" == "--disable-install-static-library" goto :disable-lib
if "%1" == "--enable-debug-env" goto :enable-debug-env
if "%1" == "--disable-debug-env" goto :disable-debug-env
+if "%1" == "--enable-devel" goto :enable-devel
+if "%1" == "--disable-devel" goto :disable-devel
if "%1" == "--enable-rubygems" goto :enable-rubygems
if "%1" == "--disable-rubygems" goto :disable-rubygems
if "%1" == "--enable-mjit-support" goto :enable-mjit-support
@@ -143,6 +145,16 @@ goto :loop ; echo>>confargs.tmp %1 \
shift
goto :loop ;
+:enable-devel
+ echo>> ~tmp~.mak "RUBY_DEVEL=yes" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop ;
+:disable-devel
+ echo>> ~tmp~.mak "RUBY_DEVEL=no" \
+ echo>>confargs.tmp %1 \
+ shift
+goto :loop ;
:enable-rubygems
echo>> ~tmp~.mak "USE_RUBYGEMS=yes" \
echo>>confargs.tmp %1 \
diff --git a/win32/setup.mak b/win32/setup.mak index c84d4066ea..39323c61c2 100644 --- a/win32/setup.mak +++ b/win32/setup.mak @@ -80,6 +80,9 @@ $(BANG)else HAVE_BASERUBY = no $(BANG)endif << +!if "$(RUBY_DEVEL)" == "yes" + RUBY_DEVEL = yes +!endif !if "$(GIT)" != "" @echo GIT = $(GIT)>> $(MAKEFILE) !endif @@ -197,7 +200,6 @@ echo MINOR = RUBY_VERSION_MINOR echo TEENY = RUBY_VERSION_TEENY echo ABI_VERSION = RUBY_ABI_VERSION #if defined RUBY_PATCHLEVEL && RUBY_PATCHLEVEL < 0 -echo RUBY_DEVEL = yes #endif set /a MSC_VER = _MSC_VER #if _MSC_VER >= 1920 |