aboutsummaryrefslogtreecommitdiff
path: root/src/compile/compile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compile/compile.c')
-rw-r--r--src/compile/compile.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/compile/compile.c b/src/compile/compile.c
index c9a92a2..4ac68d3 100644
--- a/src/compile/compile.c
+++ b/src/compile/compile.c
@@ -522,8 +522,14 @@ static size_t compile_fn_body(struct ejit_func *f, jit_state_t *j, void *arena,
return size;
}
-bool ejit_compile(struct ejit_func *f)
+bool ejit_compile(struct ejit_func *f, bool use_64)
{
+ (void)use_64;
+#if __WORDSIZE == 32
+ /* can't compile 64bit code on 32bit systems, give up early */
+ if (use_64)
+ return false;
+#endif
if (!init_jit())
return false;