diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-22 21:02:01 -0800 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2020-11-22 21:02:01 -0800 |
commit | 2700df3c9d0c163bdc5513bd0a86a783efb3c4cf (patch) | |
tree | d8a86df31e28a0fa893f8916c41a67d23f7150d6 | |
parent | 0a2b9876968dcfd7015dff09d5e44dcbf5668244 (diff) | |
download | ruby-2700df3c9d0c163bdc5513bd0a86a783efb3c4cf.tar.gz |
ruby/internal/config.h needs to be included first
to define USE_MJIT.
-rw-r--r-- | mjit.c | 3 | ||||
-rw-r--r-- | mjit.h | 2 | ||||
-rw-r--r-- | mjit_compile.c | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -11,9 +11,10 @@ // To share variables privately, include mjit_worker.c instead of linking. +#include "ruby/internal/config.h" // defines USE_MJIT + #if USE_MJIT -#include "ruby/internal/config.h" #include "constant.h" #include "id_table.h" #include "internal.h" @@ -8,7 +8,7 @@ **********************************************************************/ -#include "ruby/internal/config.h" +#include "ruby/internal/config.h" // defines USE_MJIT #include "ruby/internal/stdbool.h" #include "vm_core.h" diff --git a/mjit_compile.c b/mjit_compile.c index cf0c6dcfaa..c1d8f3468a 100644 --- a/mjit_compile.c +++ b/mjit_compile.c @@ -10,7 +10,7 @@ // call Ruby methods (C functions that may call rb_funcall) or trigger // GC (using ZALLOC, xmalloc, xfree, etc.) in this file. -#include "ruby/internal/config.h" +#include "ruby/internal/config.h" // defines USE_MJIT #if USE_MJIT |