diff options
author | Lin Jian <me@linj.tech> | 2022-10-04 02:53:55 +0800 |
---|---|---|
committer | Lin Jian <me@linj.tech> | 2022-10-04 02:53:55 +0800 |
commit | 4f65cecd453709aae763e08ccc985ec8db432507 (patch) | |
tree | 62fa67b739dc585184d454cc486049e2ee8b1050 /pkgs/build-support/emacs | |
parent | 2f42903346a8927d7450bb426594dad0e8ca698f (diff) |
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
Diffstat (limited to 'pkgs/build-support/emacs')
-rw-r--r-- | pkgs/build-support/emacs/generic.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/emacs/generic.nix b/pkgs/build-support/emacs/generic.nix index 1b81dbcf9ed7e..e3d1505dde879 100644 --- a/pkgs/build-support/emacs/generic.nix +++ b/pkgs/build-support/emacs/generic.nix @@ -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" ''; } |