ruby-changes:50615
From: nobu <ko1@a...>
Date: Fri, 16 Mar 2018 11:07:48 +0900 (JST)
Subject: [ruby-changes:50615] nobu:r62771 (trunk): gmake.mk: expand MJIT header rules
nobu 2018-03-16 11:07:43 +0900 (Fri, 16 Mar 2018) New Revision: 62771 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62771 Log: gmake.mk: expand MJIT header rules * defs/gmake.mk: expand MJIT header file rules for each architectures. Modified files: trunk/common.mk trunk/defs/gmake.mk Index: defs/gmake.mk =================================================================== --- defs/gmake.mk (revision 62770) +++ defs/gmake.mk (revision 62771) @@ -149,8 +149,13 @@ ifeq ($(filter 0 1,$(words $(arch_flags) https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L149 $(foreach x,$(patsubst -arch=%,%,$(arch_flags)), \ $(eval $$(MJIT_HEADER:.h=)-$(value x).h \ $$(MJIT_MIN_HEADER:.h=)-$(value x).h \ + $$(TIMESTAMPDIR)/$$(MJIT_HEADER:.h=)-$(value x).time \ : ARCH_FLAG := -arch $(value x))) +$(foreach x,$(patsubst -arch=%,%,$(arch_flags)), \ + $(eval $$(MJIT_HEADER:.h=)-$(value x).h: \ + $$(TIMESTAMPDIR)/$$(MJIT_HEADER:.h=)-$(value x).time)) + mjit_min_headers := $(patsubst -arch=%,$(MJIT_MIN_HEADER:.h=-%.h),$(arch_flags)) $(MJIT_MIN_HEADER): $(mjit_min_headers) $(PREP) @ set -e; set $(patsubst -arch=%,%,$(arch_flags)); \ Index: common.mk =================================================================== --- common.mk (revision 62770) +++ common.mk (revision 62771) @@ -201,7 +201,7 @@ main: $(SHOWFLAGS) exts $(ENCSTATIC:stat https://github.com/ruby/ruby/blob/trunk/common.mk#L201 @$(NULLCMD) .PHONY: mjit-headers -mjit-headers: $(TIMESTAMPDIR)/$(MJIT_HEADER:.h=)$(MJIT_HEADER_SUFFIX).time $(MJIT_MIN_HEADER) mjit_config.h +mjit-headers: $(MJIT_MIN_HEADER) mjit_config.h mjit.$(OBJEXT): mjit_config.h mjit_config.h: Makefile -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/