Skip to content

Commit

Permalink
fix(config): limit concurrency to prevent 'cargo test/build' crash du…
Browse files Browse the repository at this point in the history
…e to excessive memory use (#1259)
  • Loading branch information
avivg-starkware authored Oct 10, 2024
1 parent 1aec043 commit 5a21cba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5a21cba

Please sign in to comment.