Skip to content

Commit 8ac0bd2

Browse files
authored
GoPackage: respect -j concurrency (spack#48421)
1 parent cc9e013 commit 8ac0bd2

File tree

1 file changed

+9
-1
lines changed
  • lib/spack/spack/build_systems

1 file changed

+9
-1
lines changed

lib/spack/spack/build_systems/go.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,15 @@ def build_directory(self):
8383
def build_args(self):
8484
"""Arguments for ``go build``."""
8585
# Pass ldflags -s = --strip-all and -w = --no-warnings by default
86-
return ["-modcacherw", "-ldflags", "-s -w", "-o", f"{self.pkg.name}"]
86+
return [
87+
"-p",
88+
str(self.pkg.module.make_jobs),
89+
"-modcacherw",
90+
"-ldflags",
91+
"-s -w",
92+
"-o",
93+
f"{self.pkg.name}",
94+
]
8795

8896
@property
8997
def check_args(self):

0 commit comments

Comments
 (0)