From f3d8ab2ef6ffe30ec91c795e0223392dd96ea61a Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Sat, 17 Oct 2020 16:05:57 -0400 Subject: build system: Clean mingw tarballs Tamar noticed in !4293 that the build systems fail to clean up the mingw tarballs directory (`ghc-tarballs`). Fix this in both the make build system and Hadrian. --- ghc.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ghc.mk') diff --git a/ghc.mk b/ghc.mk index 7546c21f20..692962d10d 100644 --- a/ghc.mk +++ b/ghc.mk @@ -1424,6 +1424,13 @@ distclean : clean # Don't delete 'inplace' itself, it contains source files. $(call removeTrees,inplace/mingw) +# Remove the download tarballs. This is because updating +# the tarballs doesn't remove old ones. After a tarbal is updated +# you end up with both in your tree and get a franken build. +# The downside here is that a maintainer clean will trigger more +# bandwidth usage from haskell.org + $(call removeTrees,ghc-tarballs) + # Remove the fs utilities. $(call removeFiles,utils/lndir/fs.h) $(call removeFiles,utils/lndir/fs.c) -- cgit v1.2.1