go: set GOMAXPROCS to limit number of build processes (#35703)

This commit is contained in:
Alex Richert 2023-02-26 22:26:50 -08:00 committed by GitHub
parent b0b4a05d44
commit 313c7386c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,6 +116,7 @@ def setup_build_environment(self, env):
# internal Spack wrappers and fail. # internal Spack wrappers and fail.
env.set("CC_FOR_TARGET", self.compiler.cc) env.set("CC_FOR_TARGET", self.compiler.cc)
env.set("CXX_FOR_TARGET", self.compiler.cxx) env.set("CXX_FOR_TARGET", self.compiler.cxx)
env.set("GOMAXPROCS", make_jobs)
def setup_dependent_package(self, module, dependent_spec): def setup_dependent_package(self, module, dependent_spec):
"""Called before go modules' install() methods. """Called before go modules' install() methods.