sweet/tile38: set GOROOT for the tile38 build
The tile38 build happens with make, so I just missed this in a previous
CL.
Change-Id: I85e06fceb2c053887afe7f04504e141e3fa27093
Reviewed-on: https://go-review.googlesource.com/c/benchmarks/+/384338
Reviewed-by: Michael Pratt <mpratt@google.com>
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
diff --git a/sweet/harnesses/tile38.go b/sweet/harnesses/tile38.go
index 32fcf95..07847ff 100644
--- a/sweet/harnesses/tile38.go
+++ b/sweet/harnesses/tile38.go
@@ -35,8 +35,10 @@
// Add the Go tool to PATH, since tile38's Makefile doesn't provide enough
// visibility into how tile38 is built to allow us to pass this information
- // directly.
+ // directly. Also set the GOROOT explicitly because it might have propagated
+ // differently from the environment.
env = env.Prefix("PATH", filepath.Join(cfg.GoRoot, "bin")+":")
+ env = env.MustSet("GOROOT=" + cfg.GoRoot)
cmd := exec.Command("make", "-C", bcfg.SrcDir)
cmd.Env = env.Collapse()