Merge pull request #18312 from Homebrew/cargo-parallel

This commit is contained in:
Carlo Cabrera 2024-09-12 02:28:15 +08:00 committed by GitHub
commit 0fb4d515e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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.