emacs: remove warning of xargs when doing AOT native-comp

Before, there is a warning:

xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value

According to the  manual[1], swap -I and -n can remove this warning.

[1]: https://www.gnu.org/software/findutils/manual/html_node/find_html/Conflicting-xargs-options.html
This commit is contained in:
Lin Jian 2022-10-04 02:53:55 +08:00
parent 2f42903346
commit 4f65cecd45
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5

View File

@ -85,7 +85,7 @@ stdenv.mkDerivation ({
addEmacsVars "$out"
find $out/share/emacs -type f -name '*.el' -print0 \
| xargs -0 -n 1 -I {} -P $NIX_BUILD_CORES sh -c \
| xargs -0 -I {} -n 1 -P $NIX_BUILD_CORES sh -c \
"emacs --batch --eval '(setq large-file-warning-threshold nil)' -f batch-native-compile {} || true"
'';
}