diff options
author | наб <[email protected]> | 2021-12-23 21:26:19 +0100 |
---|---|---|
committer | Tony Hutter <[email protected]> | 2022-09-14 11:23:25 -0700 |
commit | c8f795ba53acfe0239bfa5d75f64dce8e390a992 (patch) | |
tree | 2875d55c6d6b7383790d36d06554f8fef7b84faa /config | |
parent | 7bbfac9d04dc06ba339be0540fd50e5166df8516 (diff) |
config: check for parallel(1), use it for cstyle
Before:
$ time make cstyle
real 0m23.118s
user 0m23.002s
sys 0m0.114s
After:
$ time make cstyle
real 0m4.577s
user 0m31.487s
sys 0m0.699s
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
Issue #12899
Diffstat (limited to 'config')
-rw-r--r-- | config/always-parallel.m4 | 8 | ||||
-rw-r--r-- | config/zfs-build.m4 | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/config/always-parallel.m4 b/config/always-parallel.m4 new file mode 100644 index 000000000..c1f1ae78e --- /dev/null +++ b/config/always-parallel.m4 @@ -0,0 +1,8 @@ +dnl # +dnl # Check if GNU parallel is available. +dnl # +AC_DEFUN([ZFS_AC_CONFIG_ALWAYS_PARALLEL], [ + AC_CHECK_PROG([PARALLEL], [parallel], [yes]) + + AM_CONDITIONAL([HAVE_PARALLEL], [test "x$PARALLEL" = "xyes"]) +]) diff --git a/config/zfs-build.m4 b/config/zfs-build.m4 index 8ca596ecf..bd8e3ac80 100644 --- a/config/zfs-build.m4 +++ b/config/zfs-build.m4 @@ -226,6 +226,7 @@ AC_DEFUN([ZFS_AC_CONFIG_ALWAYS], [ ZFS_AC_CONFIG_ALWAYS_SED ZFS_AC_CONFIG_ALWAYS_CPPCHECK ZFS_AC_CONFIG_ALWAYS_SHELLCHECK + ZFS_AC_CONFIG_ALWAYS_PARALLEL ]) AC_DEFUN([ZFS_AC_CONFIG], [ |