diff --git a/common.mk b/common.mk index 6a40cec850..07335e4878 100644 --- a/common.mk +++ b/common.mk @@ -10024,11 +10024,11 @@ mjit_compiler.$(OBJEXT): {$(VPATH)}iseq.h mjit_compiler.$(OBJEXT): {$(VPATH)}method.h mjit_compiler.$(OBJEXT): {$(VPATH)}missing.h mjit_compiler.$(OBJEXT): {$(VPATH)}mjit.h +mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_c.h mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_c.rb mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_c.rbinc mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_compile_attr.inc mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_compiler.c -mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_compiler.h mjit_compiler.$(OBJEXT): {$(VPATH)}mjit_unit.h mjit_compiler.$(OBJEXT): {$(VPATH)}node.h mjit_compiler.$(OBJEXT): {$(VPATH)}ruby_assert.h diff --git a/mjit_compiler.h b/mjit_c.h similarity index 97% rename from mjit_compiler.h rename to mjit_c.h index b465be00fd..01d624233a 100644 --- a/mjit_compiler.h +++ b/mjit_c.h @@ -1,4 +1,4 @@ -// This file is parsed by tool/mjit/generate.rb for MJIT's C/Ruby interop. +// This file is parsed by tool/mjit/generate.rb to generate mjit_c.rb #ifndef MJIT_COMPILER_H #define MJIT_COMPILER_H diff --git a/mjit_compiler.c b/mjit_compiler.c index be3942a7b0..f71a9f09eb 100644 --- a/mjit_compiler.c +++ b/mjit_compiler.c @@ -10,7 +10,7 @@ #if USE_MJIT -#include "mjit_compiler.h" +#include "mjit_c.h" #include "internal.h" #include "internal/compile.h" #include "internal/hash.h" diff --git a/tool/mjit/bindgen.rb b/tool/mjit/bindgen.rb index 1c60262216..c9bfc470c8 100755 --- a/tool/mjit/bindgen.rb +++ b/tool/mjit/bindgen.rb @@ -335,8 +335,8 @@ if Dir.exist?(clangd_cache) system('rm', '-rf', clangd_cache, exception: true) end -# Parse mjit_compiler.h and generate mjit_c.rb -nodes = HeaderParser.new(File.join(src_dir, 'mjit_compiler.h'), cflags: cflags).parse +# Parse mjit_c.h and generate mjit_c.rb +nodes = HeaderParser.new(File.join(src_dir, 'mjit_c.h'), cflags: cflags).parse generator = BindingGenerator.new( src_path: src_path, uses: %w[