diff mxtool/mx.py @ 19921:ea280aa54d58

Fix arg limit on Mac
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Tue, 17 Mar 2015 11:22:56 -0700
parents bd953f563517
children 6e5df2d60fbd
line wrap: on
line diff
--- 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