From 61641bd45e769bb6b76eab0cb0248ab104e51286 Mon Sep 17 00:00:00 2001 From: Cacodemon345 Date: Fri, 3 Jul 2020 11:35:14 +0600 Subject: [PATCH] Disable JIT VM by default when compiling for DragonFly BSD --- src/common/scripting/vm/vmframe.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/scripting/vm/vmframe.cpp b/src/common/scripting/vm/vmframe.cpp index 7c2a63b1f..ff193320f 100644 --- a/src/common/scripting/vm/vmframe.cpp +++ b/src/common/scripting/vm/vmframe.cpp @@ -45,7 +45,11 @@ #include "version.h" #ifdef HAVE_VM_JIT +#ifdef __DragonFly__ +CUSTOM_CVAR(Bool, vm_jit, false, CVAR_NOINITCALL) +#else CUSTOM_CVAR(Bool, vm_jit, true, CVAR_NOINITCALL) +#endif { Printf("You must restart " GAMENAME " for this change to take effect.\n"); Printf("This cvar is currently not saved. You must specify it on the command line.");