diff --git a/.cargo/config.toml b/.cargo/config.toml index eb8a14bd9c..f12746cc84 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,3 +2,11 @@ LLVM_SYS_181_PREFIX = "/usr/lib/llvm-18/" MLIR_SYS_180_PREFIX = "/usr/lib/llvm-18/" TABLEGEN_180_PREFIX = "/usr/lib/llvm-18/" + +# Limit concurrency to prevent crash during "cargo build" due to excessive memory usage. Should be removed in the future. Slows down performance. +[build] +jobs = 8 + +# Limit concurrency to prevent crash during "cargo test" due to excessive memory usage. Should be removed in the future. Slows down performance. +[test] +jobs = 8