[MSWin] Allow gems with VS2022 for VS2019 build ruby [Misc #18362]

Although not sure if it is really compatible, let’s give it a
try.
This commit is contained in:
Nobuyoshi Nakada 2022-03-02 23:18:44 +09:00
parent f07f476518
commit 0b66121484
No known key found for this signature in database
GPG Key ID: 7CD2805BFA3770C6
1 changed files with 4 additions and 1 deletions

View File

@ -200,7 +200,10 @@ echo ABI_VERSION = RUBY_ABI_VERSION
echo RUBY_DEVEL = yes
#endif
set /a MSC_VER = _MSC_VER
#if _MSC_VER > 1900
#if _MSC_VER >= 1920
set /a MSC_VER_LOWER = MSC_VER/20*20+0
set /a MSC_VER_UPPER = MSC_VER/20*20+19
#elif _MSC_VER >= 1900
set /a MSC_VER_LOWER = MSC_VER/10*10+0
set /a MSC_VER_UPPER = MSC_VER/10*10+9
#endif