diff --git a/src/jit/nvm.c b/src/jit/nvm.c index 20db1369..37b96352 100644 --- a/src/jit/nvm.c +++ b/src/jit/nvm.c @@ -1,6 +1,8 @@ #include "../core.h" -#if (defined(__x86_64) || defined(__amd64__)) && MM!=0 +#include "../vm.h" + +#if JIT_START!=-1 #include "nvm_x86_64.c" #else #include "nvm_placeholder.c" -#endif \ No newline at end of file +#endif diff --git a/src/vm.h b/src/vm.h index 6025a21e..52c7c14b 100644 --- a/src/vm.h +++ b/src/vm.h @@ -1,7 +1,7 @@ #pragma once -#if (defined(__x86_64) || defined(__amd64__)) && MM!=0 +#if (defined(__x86_64) || defined(__amd64__)) && defined(MAP_32BIT) && MM!=0 #ifndef JIT_START #define JIT_START 2 // number of calls for when to start JITting. -1: never JIT; 0: JIT everything, n: JIT after n non-JIT invocations; max ¯1+2⋆16 #endif