summaryrefslogtreecommitdiff
path: root/weerun.c
diff options
context:
space:
mode:
Diffstat (limited to 'weerun.c')
-rw-r--r--weerun.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/weerun.c b/weerun.c
index 32b1ff0..dd0105a 100644
--- a/weerun.c
+++ b/weerun.c
@@ -8,6 +8,9 @@
#include "ir.h"
#include "weewasm.h"
+extern uint32_t jit_enable;
+extern uint32_t jit_check;
+
// Initialize the runtime functions.
void init_runtime();
void init_libc_runtime();
@@ -33,6 +36,14 @@ int main(int argc, char* argv[]) {
g_disassemble = 1;
continue;
}
+ if (strcmp(arg, "-no-jit") == 0) {
+ jit_enable = 0;
+ continue;
+ }
+ if (strcmp(arg, "-no-jit-check") == 0) {
+ jit_check = 0;
+ continue;
+ }
byte* start = NULL;
byte* end = NULL;