diff options
-rw-r--r-- | tool/transform_mjit_header.rb | 2 | ||||
-rw-r--r-- | vm_insnhelper.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tool/transform_mjit_header.rb b/tool/transform_mjit_header.rb index 3c2aa4d234..936a0e1945 100644 --- a/tool/transform_mjit_header.rb +++ b/tool/transform_mjit_header.rb @@ -15,7 +15,7 @@ module MJITHeader # VALUE __attribute__ ((foo)) bar(int baz) # __attribute__ ((foo)) VALUE bar(int baz) FUNC_HEADER_REGEXP = /\A[^\[{(]*(\s*#{ATTR_REGEXP})*[^\[{(]*\((#{ATTR_REGEXP}|[^()])*\)(\s*#{ATTR_REGEXP})*\s*/ - TARGET_NAME_REGEXP = /\A(rb|ruby|vm|insn|attr)_/ + TARGET_NAME_REGEXP = /\A(rb|ruby|vm|insn|attr|Init)_/ # Predefined macros for compilers which are already supported by MJIT. # We're going to support cl.exe too (WIP) but `cl.exe -E` can't produce macro. diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 84fd3aeb01..8d4b087874 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -3930,6 +3930,6 @@ vm_canary_is_found_dead(enum ruby_vminsn_type i, VALUE c) rb_bug("dead canary found at %s: %s", insn, str); } -#elif !defined(MJIT_HEADER) +#else void Init_vm_stack_canary(void) { /* nothing to do */ } #endif |