зеркало из https://github.com/github/ruby.git
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:
Родитель
f6ca5edf3e
Коммит
9a63e76b81
|
@ -154,13 +154,14 @@ $(foreach x,$(patsubst -arch=%,%,$(arch_flags)), \
|
|||
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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче