# HG changeset patch # User Tom Rodriguez # Date 1426616576 25200 # Node ID ea280aa54d58ff2eeb68d0732a5d812b755091b7 # Parent 7366593c061054ecd368be44c23f4ab0a6a1caee Fix arg limit on Mac diff -r 7366593c0610 -r ea280aa54d58 mxtool/mx.py --- a/mxtool/mx.py Mon Mar 16 17:37:32 2015 -0700 +++ b/mxtool/mx.py Tue Mar 17 11:22:56 2015 -0700 @@ -2823,7 +2823,7 @@ else: # Using just SC_ARG_MAX without extra downwards adjustment # results in "[Errno 7] Argument list too long" on MacOS. - commandLinePrefixAllowance -= 20000 + commandLinePrefixAllowance = 20000 syslimit = os.sysconf('SC_ARG_MAX') if syslimit == -1: syslimit = 262144 # we could use sys.maxint but we prefer a more robust smaller value