[commit: ghc] wip/nfs-locking: Update Setting.hs (55b0d41)
git at git.haskell.org
git at git.haskell.org
Thu Oct 26 23:49:16 UTC 2017
Repository : ssh://git@git.haskell.org/ghc
On branch : wip/nfs-locking
Link : http://ghc.haskell.org/trac/ghc/changeset/55b0d414555297fc845a3ed0196accd5ab454890/ghc
>---------------------------------------------------------------
commit 55b0d414555297fc845a3ed0196accd5ab454890
Author: Moritz Angermann <moritz.angermann at gmail.com>
Date: Mon Jan 11 11:19:18 2016 +0800
Update Setting.hs
Set a sensible default `cmdLineLengthLimit` for os x.
>---------------------------------------------------------------
55b0d414555297fc845a3ed0196accd5ab454890
src/Oracles/Config/Setting.hs | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/Oracles/Config/Setting.hs b/src/Oracles/Config/Setting.hs
index 0047f03..46d0d33 100644
--- a/src/Oracles/Config/Setting.hs
+++ b/src/Oracles/Config/Setting.hs
@@ -166,6 +166,9 @@ cmdLineLengthLimit = do
return $ case (windows, osx) of
-- windows
(True, False) -> 31000
- -- osx 262144 is ARG_MAX, 33166 experimentally determined
- (False, True) -> 262144 - 33166
+ -- osx 262144 is ARG_MAX
+ -- yet when using `xargs` on osx this is reduced by over 20 000.
+ -- 200 000 seems like a sensible limit.
+ (False, True) -> 200000
+ -- On all other systems, we try this:
_ -> 4194304 -- Cabal needs a bit more than 2MB!
More information about the ghc-commits
mailing list