mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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:
parent
41f405c486
commit
e8617d0e7e
3 changed files with 10 additions and 3 deletions
2
yjit.h
2
yjit.h
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue