ruby-changes:50226
From: nobu <ko1@a...>
Date: Sat, 10 Feb 2018 15:38:23 +0900 (JST)
Subject: [ruby-changes:50226] nobu:r62344 (trunk): select each files for architectures
nobu 2018-02-10 15:38:18 +0900 (Sat, 10 Feb 2018) New Revision: 62344 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62344 Log: select each files for architectures Modified files: trunk/defs/gmake.mk Index: defs/gmake.mk =================================================================== --- defs/gmake.mk (revision 62343) +++ defs/gmake.mk (revision 62344) @@ -154,13 +154,14 @@ $(foreach x,$(patsubst -arch=%,%,$(arch_ https://github.com/ruby/ruby/blob/trunk/defs/gmake.mk#L154 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)); \ - cd $(@D); h=$(@F:.h=); set -x; \ - cp $$h-$$1.h $$h.h.new; shift; \ - for arch; do \ - mv $$h.h.new $$h.h.tmp; \ - diff -B -D__$${arch}__ $$h.h.tmp $$h-$$arch.h > $$h.h.new || :; \ - done - $(RM) $@.tmp + cd $(@D); h=$(@F:.h=); \ + exec > $(@F).new; \ + echo '#if 0'; \ + for arch; do\ + echo "#elif defined __$${arch}__"; \ + echo "# include \"$$h-$$arch.h\""; \ + done; \ + echo "#else"; echo "# error unsupported platform"; echo "#endif" $(IFCHANGE) $@ $@.new $(Q) $(MAKEDIRS) $(MJIT_HEADER_INSTALL_DIR) $(Q) $(MAKE_LINK) $@ $(MJIT_HEADER_INSTALL_DIR)/$(@F) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/