ZJIT: Prohibit ZJIT support with USE_FLONUM=0 (#15471)

This commit is contained in:
Takashi Kokubun 2025-12-09 21:18:03 -08:00 committed by GitHub
parent 238e69d125
commit ec862b41dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
Notes: git 2025-12-10 05:18:31 +00:00
Merged-By: k0kubun <takashikkbn@gmail.com>
2 changed files with 5 additions and 1 deletions

View File

@ -244,7 +244,7 @@ jobs:
- { uses: './.github/actions/compilers', name: 'RGENGC_CHECK_MODE', with: { cppflags: '-DRGENGC_CHECK_MODE' }, timeout-minutes: 5 }
- { uses: './.github/actions/compilers', name: 'VM_CHECK_MODE', with: { cppflags: '-DVM_CHECK_MODE' }, timeout-minutes: 5 }
- { uses: './.github/actions/compilers', name: 'USE_EMBED_CI=0', with: { cppflags: '-DUSE_EMBED_CI=0' }, timeout-minutes: 5 }
- { uses: './.github/actions/compilers', name: 'USE_FLONUM=0', with: { cppflags: '-DUSE_FLONUM=0', append_configure: '--disable-yjit' }, timeout-minutes: 5 }
- { uses: './.github/actions/compilers', name: 'USE_FLONUM=0', with: { cppflags: '-DUSE_FLONUM=0', append_configure: '--disable-yjit --disable-zjit' }, timeout-minutes: 5 }
compileX:
name: 'omnibus compilations, #10'

4
zjit.c
View File

@ -31,6 +31,10 @@
#include <errno.h>
// This build config impacts the pointer tagging scheme and we only want to
// support one scheme for simplicity.
STATIC_ASSERT(pointer_tagging_scheme, USE_FLONUM);
enum zjit_struct_offsets {
ISEQ_BODY_OFFSET_PARAM = offsetof(struct rb_iseq_constant_body, param)
};