summaryrefslogtreecommitdiff
path: root/ujit_compile.c
diff options
context:
space:
mode:
authorAlan Wu <[email protected]>2020-10-05 07:41:46 -0400
committerAlan Wu <[email protected]>2021-10-20 18:19:24 -0400
commit7d1546ece5e3678a8b8eb196c81c3f4972c51f0a (patch)
treee0e6900959791ebe4d460c4823f4a16ec28baa5e /ujit_compile.c
parenta3e58f4df827f36681e4fdebfef8e05a6ceb5c10 (diff)
Try to fix Windows build
Diffstat (limited to 'ujit_compile.c')
-rw-r--r--ujit_compile.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ujit_compile.c b/ujit_compile.c
index cee9e383e7..6740a80765 100644
--- a/ujit_compile.c
+++ b/ujit_compile.c
@@ -13,6 +13,12 @@
// eg ujit_hook.h
#include "ujit_examples.inc"
+#ifdef _WIN32
+#define PLATFORM_SUPPORTED_P 0
+#else
+#define PLATFORM_SUPPORTED_P 1
+#endif
+
// Hash table of encoded instructions
extern st_table *rb_encoded_insn_data;
@@ -505,7 +511,7 @@ rb_ujit_enabled_p(void)
void
rb_ujit_init(void)
{
- if (!ujit_scrape_successful) {
+ if (!ujit_scrape_successful && PLATFORM_SUPPORTED_P) {
return;
}
// Initialize the code blocks