MJIT: Rename mjit_compiler.h to mjit_c.h
because it exists primarily for generating mjit_c.rb.
This commit is contained in:
parent
74bdf09215
commit
acb76663ba
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
@ -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[
|
||||
|
Loading…
x
Reference in New Issue
Block a user