formula: make cargo respect Homebrew-managed parallelism

`cargo` doesn't follow setting `HOMEBREW_MAKE_JOBS` or
`ENV.deparallelize`. Let's fix that.
This commit is contained in:
Carlo Cabrera 2024-09-12 02:16:01 +08:00
parent 0d2210b1c5
commit a9591c712f
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -1795,7 +1795,7 @@ class Formula
params(root: T.any(String, Pathname), path: T.any(String, Pathname)).returns(T::Array[String])
}
def std_cargo_args(root: prefix, path: ".")
["--locked", "--root=#{root}", "--path=#{path}"]
["--jobs", ENV.make_jobs.to_s, "--locked", "--root=#{root}", "--path=#{path}"]
end
# Standard parameters for CMake builds.