ruby-changes:50076
From: nobu <ko1@a...>
Date: Sun, 4 Feb 2018 18:13:25 +0900 (JST)
Subject: [ruby-changes:50076] nobu:r62194 (trunk): use ifchange tool for rb_mjit_header.h
nobu 2018-02-04 18:13:19 +0900 (Sun, 04 Feb 2018) New Revision: 62194 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62194 Log: use ifchange tool for rb_mjit_header.h * Makefile.in, win32/Makefile.sub (rb_mjit_header.h): use ifchange tool. cmp command is not available on Windows. Modified files: trunk/Makefile.in trunk/win32/Makefile.sub Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 62193) +++ win32/Makefile.sub (revision 62194) @@ -1189,7 +1189,7 @@ probes.h: {$(VPATH)}probes.dmyh https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L1189 rb_mjit_header.h: PHONY probes.h $(ECHO) building $@ $(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -DMJIT_HEADER $(srcdir)/vm.c -P - $(Q) (cmp vm.i $@ && $(ECHO0) $@ unchanged && $(RM) vm.i) || $(MV) vm.i $@ + $(Q) $(IFCHANGE) $@ vm.i $(MJIT_MIN_HEADER): rb_mjit_header.h $(srcdir)/tool/transform_mjit_header.rb $(ECHO) building $@ Index: Makefile.in =================================================================== --- Makefile.in (revision 62193) +++ Makefile.in (revision 62194) @@ -411,7 +411,7 @@ probes.@OBJEXT@: $(srcdir)/probes.d $(DT https://github.com/ruby/ruby/blob/trunk/Makefile.in#L411 rb_mjit_header.h: PHONY probes.h $(ECHO) building $@ $(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) -DMJIT_HEADER $(srcdir)/vm.c $(COUTFLAG) $@.new -E -P -dD - $(Q) (cmp $@.new $@ && $(ECHO0) $@ unchanged && $(RM) $@.new) || $(MV) $@.new $@ + $(Q) $(IFCHANGE) $@ $@.new $(MJIT_MIN_HEADER): rb_mjit_header.h $(srcdir)/tool/transform_mjit_header.rb $(ECHO) building $@ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/