[commit: ghc] ghc-7.10: build: Clean testsuite before sdist (12c1f75)
git at git.haskell.org
git at git.haskell.org
Tue Jun 9 10:45:51 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : ghc-7.10
Link : http://ghc.haskell.org/trac/ghc/changeset/12c1f75901bb1aba2eb054334ab4ac2dccc6b23c/ghc
>---------------------------------------------------------------
commit 12c1f75901bb1aba2eb054334ab4ac2dccc6b23c
Author: Austin Seipp <austin at well-typed.com>
Date: Thu Jun 4 17:10:33 2015 -0500
build: Clean testsuite before sdist
When making the `sdist` tarball, we don't really need anything inside
$(TOP)/testsuite in order to do our thing. So make sure we clean it
first to avoid situations like #10406.
With D917 landed, this can actually avoided entirely by fixing the
official release process to instead build an `sdist` //first// from the
clean git repository and then build that (to fixpoint) and test it. Then
the originall clean tarball can be shipped.
But it's nice to be safe in the general case where someone might want to
(in the future) `sdist` out of their build tree.
Signed-off-by: Austin Seipp <austin at well-typed.com>
Reviewed By: thomie
Differential Revision: https://phabricator.haskell.org/D956
GHC Trac Issues: #10406
(cherry picked from commit a48167eaaa984fbdc1ad31c2c674058ba3669ac6)
>---------------------------------------------------------------
12c1f75901bb1aba2eb054334ab4ac2dccc6b23c
ghc.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/ghc.mk b/ghc.mk
index 18ead9c..4019143 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1190,6 +1190,7 @@ sdist-testsuite-prep :
mkdir -p $(SRC_DIST_TESTSUITE_DIR)
mkdir -p $(SRC_DIST_TESTSUITE_DIR)/testsuite
cd $(SRC_DIST_TESTSUITE_DIR)/testsuite && lndir $(TOP)/testsuite
+ cd $(SRC_DIST_TESTSUITE_DIR) && $(MAKE) distclean
.PHONY: sdist-ghc
sdist-ghc: sdist-ghc-prep
More information about the ghc-commits
mailing list