summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-01 16:02:54 -0400
committerBen Gamari <ben@smart-cactus.org>2019-10-01 16:02:54 -0400
commite81d4bc7d1cea52b81f20d8eef6b5d1b14570230 (patch)
tree46805b59add13c0b230fe6590f1486f90dbb00de
parent822481d5658280fa76f648c3d56dc6a456b8d3a3 (diff)
downloadhaskell-wip/T17265.tar.gz
Exclude rts.cabal from source distributionswip/T17265
This modifies both the Hadrian and make build systems to avoid included the rts.cabal generated by autoconf in the source distribution. Fixes #17265.
-rw-r--r--ghc.mk1
-rw-r--r--hadrian/src/Rules/SourceDist.hs1
2 files changed, 2 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 84687fd08f..677508de8e 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1204,6 +1204,7 @@ sdist-ghc-prep-tree :
$(call removeTrees,$(SRC_DIST_GHC_DIR)/libraries/stamp/)
$(call removeTrees,$(SRC_DIST_GHC_DIR)/compiler/stage[123])
$(call removeFiles,$(SRC_DIST_GHC_DIR)/mk/build.mk)
+ $(call removeFiles,$(SRC_DIST_GHC_DIR)/rts/rts.cabal)
cd $(SRC_DIST_GHC_DIR) && "$(FIND)" $(SRC_DIST_GHC_DIRS) \( -name .git -o -name "autom4te*" -o -name "*~" -o -name "\#*" -o -name ".\#*" -o -name "log" -o -name "*-SAVE" -o -name "*.orig" -o -name "*.rej" \) -print | "$(XARGS)" $(XARGS_OPTS) "$(RM)" $(RM_OPTS_REC)
# Add files generated by alex and happy.
diff --git a/hadrian/src/Rules/SourceDist.hs b/hadrian/src/Rules/SourceDist.hs
index 8da98ef821..8eb215d9ea 100644
--- a/hadrian/src/Rules/SourceDist.hs
+++ b/hadrian/src/Rules/SourceDist.hs
@@ -93,6 +93,7 @@ prepareTree dest = do
, Test "libraries/primitive"
, Test "libraries/random"
, Test "libraries/vector"
+ , Test "rts/rts.cabal"
, Test "mk/build.mk" ]
srcDirs =
[ "bindisttest"