aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2020-11-22 21:02:01 -0800
committerTakashi Kokubun <takashikkbn@gmail.com>2020-11-22 21:02:01 -0800
commit2700df3c9d0c163bdc5513bd0a86a783efb3c4cf (patch)
treed8a86df31e28a0fa893f8916c41a67d23f7150d6
parent0a2b9876968dcfd7015dff09d5e44dcbf5668244 (diff)
downloadruby-2700df3c9d0c163bdc5513bd0a86a783efb3c4cf.tar.gz
ruby/internal/config.h needs to be included first
to define USE_MJIT.
-rw-r--r--mjit.c3
-rw-r--r--mjit.h2
-rw-r--r--mjit_compile.c2
3 files changed, 4 insertions, 3 deletions
diff --git a/mjit.c b/mjit.c
index b7240243f0..8f400f5f08 100644
--- a/mjit.c
+++ b/mjit.c
@@ -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"
diff --git a/mjit.h b/mjit.h
index 63cd1d44e5..a05305cf53 100644
--- a/mjit.h
+++ b/mjit.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