Add ABI version to ruby_version tag on Windows

This commit is contained in:
Peter Zhu 2022-02-24 11:20:40 -05:00
parent 9bd4b2ab14
commit 97001638d9
Notes: git 2022-02-25 03:32:21 +09:00
2 changed files with 2 additions and 1 deletions

View File

@ -148,7 +148,7 @@ PLATFORM_DIR = win32
arch = $(ARCH)-$(PLATFORM)
sitearch = $(ARCH)-$(RT)
!if !defined(ruby_version)
ruby_version = $(MAJOR).$(MINOR).0
ruby_version = $(MAJOR).$(MINOR).0+$(ABI_VERSION)
!endif
!if !defined(RUBY_VERSION_NAME)
RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)

View File

@ -195,6 +195,7 @@ echo RUBY_RELEASE_DAY = %ruby_release_day:~-2%
echo MAJOR = RUBY_VERSION_MAJOR
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