1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Make --disable-jit-support compile

vm_core.h needs to be included to know rb_execution_context_t, etc.
I also added a trivial refactoring in mjit.c and missing dependency for
process.c.
This commit is contained in:
Takashi Kokubun 2020-11-22 20:54:32 -08:00
parent 01f38693aa
commit 0a2b987696
No known key found for this signature in database
GPG key ID: 6FFC433B12EE23DD
3 changed files with 3 additions and 3 deletions

View file

@ -10020,6 +10020,7 @@ process.$(OBJEXT): {$(VPATH)}backward/2/stdalign.h
process.$(OBJEXT): {$(VPATH)}backward/2/stdarg.h
process.$(OBJEXT): {$(VPATH)}config.h
process.$(OBJEXT): {$(VPATH)}constant.h
process.$(OBJEXT): {$(VPATH)}debug_counter.h
process.$(OBJEXT): {$(VPATH)}defines.h
process.$(OBJEXT): {$(VPATH)}dln.h
process.$(OBJEXT): {$(VPATH)}encoding.h

3
mjit.c
View file

@ -11,10 +11,9 @@
// To share variables privately, include mjit_worker.c instead of linking.
#include "ruby/internal/config.h"
#if USE_MJIT
#include "ruby/internal/config.h"
#include "constant.h"
#include "id_table.h"
#include "internal.h"

2
mjit.h
View file

@ -10,12 +10,12 @@
#include "ruby/internal/config.h"
#include "ruby/internal/stdbool.h"
#include "vm_core.h"
# if USE_MJIT
#include "debug_counter.h"
#include "ruby.h"
#include "vm_core.h"
// Special address values of a function generated from the
// corresponding iseq by MJIT: