From 8fc56f062e40ce9eaaa61ab917cfccc2c23989d1 Mon Sep 17 00:00:00 2001 From: sbsoftware Date: Fri, 21 Sep 2018 04:22:53 +0200 Subject: Add compiler flag to disable direct threading (#4075) * Add option to disable direct threading * Prepend MRB_ to option name --- src/vm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vm.c') diff --git a/src/vm.c b/src/vm.c index 0192fc907..cba6c3924 100644 --- a/src/vm.c +++ b/src/vm.c @@ -927,10 +927,11 @@ argnum_error(mrb_state *mrb, mrb_int num) #define BYTECODE_DECODER(x) (x) #endif - +#ifndef MRB_DISABLE_DIRECT_THREADING #if defined __GNUC__ || defined __clang__ || defined __INTEL_COMPILER #define DIRECT_THREADED #endif +#endif /* ifndef MRB_DISABLE_DIRECT_THREADING */ #ifndef DIRECT_THREADED -- cgit v1.2.3