def METHOD_NAME(self, env):
    env.set("GOROOT_FINAL", self.spec.prefix)
    # We need to set CC/CXX_FOR_TARGET, otherwise cgo will use the
    # 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)