Commit 020178ae authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

Exclude rts.cabal from source distributions

This modifies both the Hadrian and make build systems to avoid included
the rts.cabal generated by autoconf in the source distribution.

Fixes #17265.

(cherry picked from commit e81d4bc7)
parent 75edf8d7
......@@ -1233,6 +1233,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)
for i in $(EXTRA_PACKAGES); do $(RM) $(RM_OPTS_REC) $(SRC_DIST_GHC_DIR)/libraries/$$i/; done
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)
......
......@@ -73,6 +73,7 @@ prepareTree dest = do
, Test "libraries/random"
, Test "libraries/stm"
, Test "libraries/vector"
, Test "rts/rts.cabal"
, Test "mk/build.mk" ]
srcDirs =
[ "bindisttest"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment