Rename builtin_binary.inc as .rbbin

Distinguish between platform-dependent ".rbbin" and platform-
independent ".inc" files.
This commit is contained in:
Nobuyoshi Nakada 2025-07-25 18:57:18 +09:00
parent bd2d6845f1
commit fb6f255028
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465
4 changed files with 7 additions and 7 deletions

View file

@ -3,7 +3,7 @@
#include "iseq.h" #include "iseq.h"
#include "builtin.h" #include "builtin.h"
#include "builtin_binary.inc" #include "builtin_binary.rbbin"
#ifndef BUILTIN_BINARY_SIZE #ifndef BUILTIN_BINARY_SIZE

View file

@ -738,7 +738,7 @@ clean-local:: clean-runnable
$(Q)$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) dmyenc.$(OBJEXT) $(ARCHFILE) .*.time $(Q)$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) dmyenc.$(OBJEXT) $(ARCHFILE) .*.time
$(Q)$(RM) y.tab.c y.output encdb.h transdb.h config.log rbconfig.rb $(ruby_pc) $(COROUTINE_H:/Context.h=/.time) $(Q)$(RM) y.tab.c y.output encdb.h transdb.h config.log rbconfig.rb $(ruby_pc) $(COROUTINE_H:/Context.h=/.time)
$(Q)$(RM) probes.h probes.$(OBJEXT) probes.stamp ruby-glommed.$(OBJEXT) ruby.imp ChangeLog $(STATIC_RUBY)$(EXEEXT) $(Q)$(RM) probes.h probes.$(OBJEXT) probes.stamp ruby-glommed.$(OBJEXT) ruby.imp ChangeLog $(STATIC_RUBY)$(EXEEXT)
$(Q)$(RM) GNUmakefile.old Makefile.old $(arch)-fake.rb bisect.sh $(ENC_TRANS_D) builtin_binary.inc $(Q)$(RM) GNUmakefile.old Makefile.old $(arch)-fake.rb bisect.sh $(ENC_TRANS_D) builtin_binary.rbbin
$(Q)$(RM) $(PRISM_BUILD_DIR)/.time $(PRISM_BUILD_DIR)/*/.time yjit_exit_locations.dump $(Q)$(RM) $(PRISM_BUILD_DIR)/.time $(PRISM_BUILD_DIR)/*/.time yjit_exit_locations.dump
-$(Q)$(RMALL) target -$(Q)$(RMALL) target
-$(Q) $(RMDIR) enc/jis enc/trans enc $(COROUTINE_H:/Context.h=) coroutine target \ -$(Q) $(RMDIR) enc/jis enc/trans enc $(COROUTINE_H:/Context.h=) coroutine target \
@ -1358,12 +1358,12 @@ preludes: {$(VPATH)}miniprelude.c
$(ECHO) making $@ $(ECHO) making $@
$(Q) $(BASERUBY) $(tooldir)/mk_builtin_loader.rb $< $(Q) $(BASERUBY) $(tooldir)/mk_builtin_loader.rb $<
$(BUILTIN_BINARY:yes=built)in_binary.inc: $(PREP) $(BUILTIN_RB_SRCS) $(srcdir)/template/builtin_binary.inc.tmpl $(BUILTIN_BINARY:yes=built)in_binary.rbbin: $(PREP) $(BUILTIN_RB_SRCS) $(srcdir)/template/builtin_binary.rbbin.tmpl
$(Q) $(MINIRUBY) $(tooldir)/generic_erb.rb -o $@ \ $(Q) $(MINIRUBY) $(tooldir)/generic_erb.rb -o $@ \
$(srcdir)/template/builtin_binary.inc.tmpl $(srcdir)/template/builtin_binary.rbbin.tmpl
-$(Q) sha256sum $@ 2> $(NULL) || $(NULLCMD) -$(Q) sha256sum $@ 2> $(NULL) || $(NULLCMD)
$(BUILTIN_BINARY:no=builtin)_binary.inc: $(BUILTIN_BINARY:no=builtin)_binary.rbbin:
$(Q) echo> $@ // empty $(@F) $(Q) echo> $@ // empty $(@F)
$(BUILTIN_RB_INCS): $(top_srcdir)/tool/mk_builtin_loader.rb $(BUILTIN_RB_INCS): $(top_srcdir)/tool/mk_builtin_loader.rb

2
depend
View file

@ -779,7 +779,7 @@ builtin.$(OBJEXT): {$(VPATH)}backward/2/stdalign.h
builtin.$(OBJEXT): {$(VPATH)}backward/2/stdarg.h builtin.$(OBJEXT): {$(VPATH)}backward/2/stdarg.h
builtin.$(OBJEXT): {$(VPATH)}builtin.c builtin.$(OBJEXT): {$(VPATH)}builtin.c
builtin.$(OBJEXT): {$(VPATH)}builtin.h builtin.$(OBJEXT): {$(VPATH)}builtin.h
builtin.$(OBJEXT): {$(VPATH)}builtin_binary.inc builtin.$(OBJEXT): {$(VPATH)}builtin_binary.rbbin
builtin.$(OBJEXT): {$(VPATH)}config.h builtin.$(OBJEXT): {$(VPATH)}config.h
builtin.$(OBJEXT): {$(VPATH)}constant.h builtin.$(OBJEXT): {$(VPATH)}constant.h
builtin.$(OBJEXT): {$(VPATH)}defines.h builtin.$(OBJEXT): {$(VPATH)}defines.h

View file

@ -1,7 +1,7 @@
// -*- c -*- // -*- c -*-
// DO NOT MODIFY THIS FILE DIRECTLY. // DO NOT MODIFY THIS FILE DIRECTLY.
// auto-generated file by tool/generic_erb.rb // auto-generated file by tool/generic_erb.rb
// with template/builtin_binary.inc.tmpl // with template/builtin_binary.rbbin.tmpl
% unless ARGV.include?('--cross=yes') % unless ARGV.include?('--cross=yes')
% ary = RubyVM.enum_for(:each_builtin).to_a % ary = RubyVM.enum_for(:each_builtin).to_a
% ary.each{|feature, iseq| % ary.each{|feature, iseq|