summaryrefslogtreecommitdiff
path: root/yjit.h
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2021-12-13 16:08:01 -0800
committerGitHub <noreply@github.com>2021-12-13 16:08:01 -0800
commit11b8aaa26a22bb67b144484af6890844771b5f46 (patch)
tree70b7047f412c7ee0c129dd53a634dc0f38c61cf3 /yjit.h
parent94494a565d7d3e1277e594db44478edc0233c3e8 (diff)
downloadruby-11b8aaa26a22bb67b144484af6890844771b5f46.tar.gz
Rename --jit to --mjit (#5248)
* Rename --jit to --mjit [Feature #18349] * Fix a few more --jit references * Fix MJIT Actions * More s/jit/mjit/ and re-introduce --disable-jit * Update NEWS.md * Fix test_bug_reporter_add
Diffstat (limited to 'yjit.h')
-rw-r--r--yjit.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/yjit.h b/yjit.h
index 357acdd4b4..6f66f59f01 100644
--- a/yjit.h
+++ b/yjit.h
@@ -15,6 +15,13 @@
# define YJIT_STATS RUBY_DEBUG
#endif
+// We generate x86 assembly and rely on mmap(2).
+#if defined(__x86_64__) && !defined(_WIN32)
+# define YJIT_SUPPORTED_P 1
+#else
+# define YJIT_SUPPORTED_P 0
+#endif
+
struct rb_yjit_options {
// Enable compilation with YJIT
bool yjit_enabled;