From 1944eeb95d5110c47610fbed04cd5fc5fd9c6c3a Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 14 May 2018 11:17:18 +0200 Subject: [PATCH] pkg/kernel: run distclean with -jNCPU --- pkg/kernel/kernel.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/kernel/kernel.go b/pkg/kernel/kernel.go index 4a82cf71..3cd689d7 100644 --- a/pkg/kernel/kernel.go +++ b/pkg/kernel/kernel.go @@ -53,7 +53,8 @@ func Build(dir, compiler, config string) error { } func Clean(dir string) error { - cmd := osutil.Command("make", "distclean") + cpu := strconv.Itoa(runtime.NumCPU()) + cmd := osutil.Command("make", "distclean", "-j", cpu) if err := osutil.Sandbox(cmd, true, true); err != nil { return err }