select each files for architectures

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2018-02-10 06:38:18 +00:00
Родитель f6ca5edf3e
Коммит 9a63e76b81
1 изменённых файлов: 8 добавлений и 7 удалений

Просмотреть файл

@ -154,13 +154,14 @@ $(foreach x,$(patsubst -arch=%,%,$(arch_flags)), \
mjit_min_headers := $(patsubst -arch=%,$(MJIT_MIN_HEADER:.h=-%.h),$(arch_flags)) mjit_min_headers := $(patsubst -arch=%,$(MJIT_MIN_HEADER:.h=-%.h),$(arch_flags))
$(MJIT_MIN_HEADER): $(mjit_min_headers) $(PREP) $(MJIT_MIN_HEADER): $(mjit_min_headers) $(PREP)
@ set -e; set $(patsubst -arch=%,%,$(arch_flags)); \ @ set -e; set $(patsubst -arch=%,%,$(arch_flags)); \
cd $(@D); h=$(@F:.h=); set -x; \ cd $(@D); h=$(@F:.h=); \
cp $$h-$$1.h $$h.h.new; shift; \ exec > $(@F).new; \
for arch; do \ echo '#if 0'; \
mv $$h.h.new $$h.h.tmp; \ for arch; do\
diff -B -D__$${arch}__ $$h.h.tmp $$h-$$arch.h > $$h.h.new || :; \ echo "#elif defined __$${arch}__"; \
done echo "# include \"$$h-$$arch.h\""; \
$(RM) $@.tmp done; \
echo "#else"; echo "# error unsupported platform"; echo "#endif"
$(IFCHANGE) $@ $@.new $(IFCHANGE) $@ $@.new
$(Q) $(MAKEDIRS) $(MJIT_HEADER_INSTALL_DIR) $(Q) $(MAKEDIRS) $(MJIT_HEADER_INSTALL_DIR)
$(Q) $(MAKE_LINK) $@ $(MJIT_HEADER_INSTALL_DIR)/$(@F) $(Q) $(MAKE_LINK) $@ $(MJIT_HEADER_INSTALL_DIR)/$(@F)