[前][次][番号順一覧][スレッド一覧]

ruby-changes:71479

From: Nobuyoshi <ko1@a...>
Date: Wed, 23 Mar 2022 01:20:58 +0900 (JST)
Subject: [ruby-changes:71479] 26aff37466 (master): Need to reconfigure and rebuild everything when abi.h changed

https://git.ruby-lang.org/ruby.git/commit/?id=26aff37466

From 26aff37466fa3226122c65f49f2b7663e6b2551b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 23 Mar 2022 00:58:03 +0900
Subject: Need to reconfigure and rebuild everything when abi.h changed

---
 template/Makefile.in | 6 ++++--
 win32/Makefile.sub   | 3 +++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/template/Makefile.in b/template/Makefile.in
index 892add75cb..54b32d05b3 100644
--- a/template/Makefile.in
+++ b/template/Makefile.in
@@ -266,6 +266,8 @@ DESTDIR       = @DESTDIR@ https://github.com/ruby/ruby/blob/trunk/template/Makefile.in#L266
 configure_args = @configure_args@
 #### End of variables
 
+ABI_VERSION_HDR = $(hdrdir)/ruby/internal/abi.h
+
 .SUFFIXES: .inc .h .c .y .i .$(ASMEXT) .$(DTRACE_EXT)
 
 all:
@@ -354,7 +356,7 @@ install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/confi https://github.com/ruby/ruby/blob/trunk/template/Makefile.in#L356
 
 Makefile:	$(srcdir)/template/Makefile.in $(srcdir)/enc/Makefile.in
 
-$(MKFILES): config.status $(srcdir)/version.h
+$(MKFILES): config.status $(srcdir)/version.h $(ABI_VERSION_HDR)
 		@[ -f $@ ] && mv $@ $@.old
 		MAKE=$(MAKE) $(SHELL) ./config.status $@
 		@cmp $@ $@.old > /dev/null 2>&1 && echo $@ unchanged && exit 0; \
@@ -376,7 +378,7 @@ reconfig-exec-0 = test -t 1 && { : $${CONFIGURE_TTY=yes}; export CONFIGURE_TTY; https://github.com/ruby/ruby/blob/trunk/template/Makefile.in#L378
 reconfig-exec-1 = set -x; "$$@"
 
 reconfig config.status:	$(srcdir)/$(CONFIGURE) $(srcdir)/enc/Makefile.in \
-			$(srcdir)/include/ruby/version.h
+			$(hdrdir)/ruby/version.h $(ABI_VERSION_HDR)
 	@PWD= MINIRUBY="$(MINIRUBY)"; export MINIRUBY; \
 	set $(SHELL) $($@-args); $(reconfig-exec-$(V))
 
diff --git a/win32/Makefile.sub b/win32/Makefile.sub
index 95a9ef4508..063e6938d5 100644
--- a/win32/Makefile.sub
+++ b/win32/Makefile.sub
@@ -539,6 +539,8 @@ ACTIONS_GROUP = @:: $(empty) https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L539
 ACTIONS_ENDGROUP = @::
 !endif
 
+ABI_VERSION_HDR = $(hdrdir)/ruby/internal/abi.h
+
 !include $(srcdir)/common.mk
 
 !ifdef SCRIPTPROGRAMS
@@ -571,6 +573,7 @@ update-src:: https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L573
 
 .PHONY: reconfig
 reconfig $(MKFILES): $(srcdir)/common.mk $(srcdir)/version.h \
+	    $(hdrdir)/ruby/version.h $(ABI_VERSION_HDR) \
 	    $(win_srcdir)/Makefile.sub $(win_srcdir)/configure.bat \
 	    $(win_srcdir)/setup.mak $(win_srcdir)/enc-setup.mak \
 	    $(srcdir)/enc/Makefile.in
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]