Make sure we can still compile with the JIT disabled

If `--disable-jit-support` is passed to configure, then `jit_func` is
removed from the iseq body and we can't compile YJIT.  This commit
detects when the JIT function pointer is gone and disables YJIT in that
case.
This commit is contained in:
Aaron Patterson 2021-07-15 15:43:39 -07:00 committed by Alan Wu
parent 41f405c486
commit e8617d0e7e
3 changed files with 10 additions and 3 deletions

2
yjit.h
View file

@ -14,6 +14,8 @@
#define PLATFORM_SUPPORTED_P 1
#endif
#define JIT_ENABLED USE_MJIT
#ifndef YJIT_CHECK_MODE
#define YJIT_CHECK_MODE 0
#endif