summaryrefslogtreecommitdiff
path: root/yjit.h
diff options
context:
space:
mode:
authorU.Nakamura <usa@ruby-lang.org>2021-12-27 15:56:23 +0900
committerU.Nakamura <usa@ruby-lang.org>2021-12-27 15:56:23 +0900
commit85a426dc8678f04a78ffd799943b690ce2984c49 (patch)
treedb4a2ccd3de67b69651ccbe66830ff313150072e /yjit.h
parentf486566f133ae191c6f9d5ff0001abf8efc9984f (diff)
downloadruby-85a426dc8678f04a78ffd799943b690ce2984c49.tar.gz
Tiny mmap emulation for Windows
- prerequisite of supporting YJIT with VC++. - note that now can specfily `--yjit` on mswin64, but not enabled YJIT'ed code because of YJIT requires `OPT_DIRECT_THREADED_CODE` or `OPT_CALL_THREADED_CODE` in `rb_yjit_compile_iseq`.
Diffstat (limited to 'yjit.h')
-rw-r--r--yjit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit.h b/yjit.h
index 6f66f59f01..53e8b531a9 100644
--- a/yjit.h
+++ b/yjit.h
@@ -16,7 +16,7 @@
#endif
// We generate x86 assembly and rely on mmap(2).
-#if defined(__x86_64__) && !defined(_WIN32)
+#if defined(__x86_64__) || defined(_WIN64)
# define YJIT_SUPPORTED_P 1
#else
# define YJIT_SUPPORTED_P 0