]> git.ipfire.org Git - thirdparty/automake.git/commit
[ng] am.xargs-map: be usable with huge lists
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 7 Jul 2012 17:09:32 +0000 (19:09 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 7 Jul 2012 20:33:31 +0000 (22:33 +0200)
commite8b7bb4f9f65a4b7df7410e2312c925dd324c79b
tree712a4a774e237e72f55ee066122a436533600676
parent327d58514029cb5ae5add15335d709ccb831634e
[ng] am.xargs-map: be usable with huge lists

The previous implementation could eat all memory if the given list was
really huge -- but this function will be needed to operate on potentially
huge lists! (i.e., list of tests or files which can exceed the command-line
length limit of the system).

As a drawback, the function cannot recursively invoke itself anymore (not
even indirectly), but this is an acceptable limitation for its intended
uses.

* lib/am/header-vars.am (am.xargs-map): Reimplemented.
(am.max-cmdline-args): Redefine, as its semantics have changed.
(am.max-cmdline-args+1): Remove, no more needed.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/header-vars.am