Enable per-OS @argfile limits

This commit is contained in:
Thomas Nagy 2016-06-15 22:24:30 +02:00
parent 537d1fcd45
commit 092712f001
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 2 additions and 2 deletions

View File

@ -52,4 +52,4 @@ NEW IN WAF 1.9
instances can still define their own mappings to override the defaults, but in
that case all mappings/precedences must be present. These features were not used in Waf 1.8.
- Do not truncate the _task suffix from Task class names
- Task.exec_command will use @argfile when command-line limits are exceeded

View File

@ -199,7 +199,7 @@ class TaskBase(evil):
# workaround for command line length limit:
# http://support.microsoft.com/kb/830473
if not isinstance(cmd, str) and len(repr(cmd)) >= 8192:
if not isinstance(cmd, str) and (len(repr(cmd)) >= 8192 if Utils.is_win32 else len(cmd) > 200000):
cmd, args = self.split_argfile(cmd)
try:
(fd, tmp) = tempfile.mkstemp()