Merge pull request #165 from sched-ext/reduce-rust-build-load

build: limit the maximum amount of parallel cargo build
This commit is contained in:
David Vernet 2024-02-29 09:19:42 -06:00 committed by GitHub
commit a7b39f24e2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,11 @@ endif
cargo_env = environment()
cargo_env.set('BPF_CLANG', bpf_clang.full_path())
#
# Limit the maximum amount of parallel builds for the Rust schedulers.
#
cargo_env.set('CARGO_BUILD_JOBS', '1')
foreach flag: bpf_base_cflags
cargo_env.append('BPF_BASE_CFLAGS', flag, separator: ' ')
endforeach