From b80c265fa46d9ce3e116c0746341ec1b5dfac1cb Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 10 Mar 2017 07:18:03 +0000 Subject: debug_counter.c: debug_counter_names [ci skip] * debug_counter.c (debug_counter_names): stringize debug counter names by preprocessor. * debug_counter.h (RB_DEBUG_COUNTER): define counter names outside the include guard, to expand multiple times. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'common.mk') diff --git a/common.mk b/common.mk index b944849d2f..0220ec3a78 100644 --- a/common.mk +++ b/common.mk @@ -886,15 +886,10 @@ incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}known_errors.inc \ {$(VPATH)}vm_call_iseq_optimized.inc $(srcdir)/revision.h \ $(REVISION_H) \ $(UNICODE_DATA_HEADERS) $(srcdir)/enc/jis/props.h \ - {$(VPATH)}id.h {$(VPATH)}probes.dmyh \ - {$(VPATH)}debug_counter_names.inc + {$(VPATH)}id.h {$(VPATH)}probes.dmyh insns: $(INSNS) -debug_counter_names.inc: $(srcdir)/tool/debug_counter.rb $(srcdir)/debug_counter.h - $(ECHO) generating $@ - $(Q) $(BASERUBY) $(srcdir)/tool/debug_counter.rb $(srcdir)/debug_counter.h > $@ - id.h: $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.h.tmpl $(srcdir)/defs/id.def $(ECHO) generating $@ $(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ \ @@ -1466,7 +1461,6 @@ debug.$(OBJEXT): {$(VPATH)}vm_core.h debug.$(OBJEXT): {$(VPATH)}vm_debug.h debug.$(OBJEXT): {$(VPATH)}vm_opts.h debug_counter.$(OBJEXT): {$(VPATH)}debug_counter.h -debug_counter.$(OBJEXT): {$(VPATH)}debug_counter_names.inc debug_counter.$(OBJEXT): {$(VPATH)}debug_counter.c dir.$(OBJEXT): $(hdrdir)/ruby/ruby.h dir.$(OBJEXT): $(top_srcdir)/include/ruby.h -- cgit v1.2.3