diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-08-21 14:28:06 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-08-22 09:49:03 +0000 |
| commit | ea1cd5ff3029315c1f89b98b820ceeebfba0e4df (patch) | |
| tree | ead4b8475abce2fecb5a30f3cc1d6d62a2bac982 /sys/syz-extract | |
| parent | aa99fc3349e97ea596c31624efde306de4136241 (diff) | |
pkg/build: introduce the build jobs parameter
This parameter defines the number of cores dedicated to the kernel build
process. By default, it's equal to the number of available CPUs.
Diffstat (limited to 'sys/syz-extract')
| -rw-r--r-- | sys/syz-extract/linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go index d30529ba9..b458122ad 100644 --- a/sys/syz-extract/linux.go +++ b/sys/syz-extract/linux.go @@ -79,7 +79,7 @@ func (*linux) prepareArch(arch *Arch) error { return nil } kernelDir := arch.sourceDir - makeArgs := build.LinuxMakeArgs(arch.target, "", "", "", arch.buildDir) + makeArgs := build.LinuxMakeArgs(arch.target, "", "", "", arch.buildDir, runtime.NumCPU()) if arch.configFile != "" { err := osutil.CopyFile(arch.configFile, filepath.Join(arch.buildDir, ".config")) if err != nil { |
