Skip to content

Commit bda875a

Browse files
committed
unix: capture gcc dependencies better
Otherwise we can change downloads.py and we won't trigger a rebuild of gcc.
1 parent f33ea1f commit bda875a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

cpython-unix/Makefile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,16 @@ endif
105105
$(OUTDIR)/binutils-$(BINUTILS_VERSION)-$(HOST_PLATFORM).tar: $(OUTDIR)/image-gcc.tar $(HERE)/build-binutils.sh
106106
$(RUN_BUILD) --toolchain binutils
107107

108-
$(OUTDIR)/gcc-$(GCC_VERSION)-$(HOST_PLATFORM).tar: $(OUTDIR)/binutils-$(BINUTILS_VERSION)-$(HOST_PLATFORM).tar $(HERE)/build-gcc.sh
108+
GCC_DEPENDS := \
109+
$(OUTDIR)/binutils-$(BINUTILS_VERSION)-$(HOST_PLATFORM).tar \
110+
$(OUTDIR)/versions/VERSION.gmp \
111+
$(OUTDIR)/versions/VERSION.isl \
112+
$(OUTDIR)/versions/VERSION.mpc \
113+
$(OUTDIR)/versions/VERSION.mpfr \
114+
$(HERE)/build-gcc.sh \
115+
$(NULL)
116+
117+
$(OUTDIR)/gcc-$(GCC_VERSION)-$(HOST_PLATFORM).tar: $(GCC_DEPENDS)
109118
$(RUN_BUILD) --toolchain gcc
110119

111120
CLANG_DEPENDS := \

0 commit comments

Comments
 (0)