pkg/kernel: run distclean with -jNCPU

This commit is contained in:
Dmitry Vyukov 2018-05-14 11:17:18 +02:00
parent 4fce9bf152
commit 1944eeb95d

View File

@ -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
}