GoPackage: respect -j concurrency (#48421)

This commit is contained in:
Alec Scott 2025-01-27 09:58:29 -08:00 committed by GitHub
parent cc9e0137df
commit 8ac0bd2825
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -83,7 +83,15 @@ def build_directory(self):
def build_args(self):
"""Arguments for ``go build``."""
# Pass ldflags -s = --strip-all and -w = --no-warnings by default
return ["-modcacherw", "-ldflags", "-s -w", "-o", f"{self.pkg.name}"]
return [
"-p",
str(self.pkg.module.make_jobs),
"-modcacherw",
"-ldflags",
"-s -w",
"-o",
f"{self.pkg.name}",
]
@property
def check_args(self):