1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

gmake.mk: expand MJIT header rules

* defs/gmake.mk: expand MJIT header file rules for each
  architectures.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-03-16 02:07:43 +00:00
parent dd543cd478
commit d3c5746bbb
2 changed files with 6 additions and 1 deletions

View file

@ -201,7 +201,7 @@ main: $(SHOWFLAGS) exts $(ENCSTATIC:static=lib)encs $(MJIT_MIN_HEADER)
@$(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

View file

@ -149,8 +149,13 @@ ifeq ($(filter 0 1,$(words $(arch_flags))),)
$(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)); \