go: set GOMAXPROCS to limit number of build processes (#35703)
This commit is contained in:
parent
b0b4a05d44
commit
313c7386c4
1 changed files with 1 additions and 0 deletions
|
@ -116,6 +116,7 @@ def setup_build_environment(self, env):
|
|||
# internal Spack wrappers and fail.
|
||||
env.set("CC_FOR_TARGET", self.compiler.cc)
|
||||
env.set("CXX_FOR_TARGET", self.compiler.cxx)
|
||||
env.set("GOMAXPROCS", make_jobs)
|
||||
|
||||
def setup_dependent_package(self, module, dependent_spec):
|
||||
"""Called before go modules' install() methods.
|
||||
|
|
Loading…
Reference in a new issue