diff options
| author | sbsoftware <[email protected]> | 2018-09-21 04:22:53 +0200 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2018-09-21 11:22:53 +0900 |
| commit | 8fc56f062e40ce9eaaa61ab917cfccc2c23989d1 (patch) | |
| tree | 757e4bc7be0956ba4056c5bf93aa6ab5268f46ec | |
| parent | 9bd2a3b5d9f56d838a25e2038f948afdc4adccac (diff) | |
| download | mruby-8fc56f062e40ce9eaaa61ab917cfccc2c23989d1.tar.gz mruby-8fc56f062e40ce9eaaa61ab917cfccc2c23989d1.zip | |
Add compiler flag to disable direct threading (#4075)
* Add option to disable direct threading
* Prepend MRB_ to option name
| -rw-r--r-- | src/vm.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |
