summaryrefslogtreecommitdiff
path: root/ghc.mk
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2018-03-29 14:22:09 +0100
committerTamar Christina <tamar@zhox.com>2018-03-31 10:11:53 +0100
commit4de585a5c1ac3edc2914cebcac1753b514051a89 (patch)
tree09bfb4251808007bb4ad79c6f10f3e4fbe3e9312 /ghc.mk
parentafb686a88901d7d0c93627806d7e4d0444aa17e8 (diff)
downloadhaskell-4de585a5c1ac3edc2914cebcac1753b514051a89.tar.gz
Remove MAX_PATH restrictions from RTS, I/O manager and various utilities
Summary: This shims out fopen and sopen so that they use modern APIs under the hood along with namespaced paths. This lifts the MAX_PATH restrictions from Haskell programs and makes the new limit ~32k. There are only some slight caveats that have been documented. Some utilities have not been upgraded such as lndir, since all these things are different cabal packages I have been forced to copy the source in different places which is less than ideal. But it's the only way to keep sdist working. Test Plan: ./validate Reviewers: hvr, bgamari, erikd, simonmar Reviewed By: bgamari Subscribers: rwbarton, thomie, carter GHC Trac Issues: #10822 Differential Revision: https://phabricator.haskell.org/D4416
Diffstat (limited to 'ghc.mk')
-rw-r--r--ghc.mk10
1 files changed, 10 insertions, 0 deletions
diff --git a/ghc.mk b/ghc.mk
index 38c165d261..3573b7575b 100644
--- a/ghc.mk
+++ b/ghc.mk
@@ -1450,6 +1450,16 @@ distclean : clean
$(call removeTrees,inplace/mingw)
$(call removeTrees,inplace/perl)
+# Remove the fs utilities.
+ $(call removeFiles,utils/lndir/fs.h)
+ $(call removeFiles,utils/lndir/fs.c)
+ $(call removeFiles,utils/unlit/fs.h)
+ $(call removeFiles,utils/unlit/fs.c)
+ $(call removeFiles,rts/fs.h)
+ $(call removeFiles,rts/fs.c)
+ $(call removeFiles,libraries/base/include/fs.h)
+ $(call removeFiles,libraries/base/cbits/fs.c)
+
maintainer-clean : distclean
$(call removeFiles,configure mk/config.h.in)
$(call removeTrees,autom4te.cache $(wildcard libraries/*/autom4te.cache))