platform_build_soong/ui/build
Dan Willemsen e7945d76ac Make GOROOT consistent
We were previously setting GOROOT to "prebuilts/go/linux-x86" during the
ninja executions when we were running Soong. But we can also run Soong
during the main ninja execution, were GOROOT was unset. When the GOROOT
was unset, the default GOROOT in our Go installation is
"./prebuilts/go/linux-x86" (note the extra ./).

This would cause g.bootstrap.goRoot to change between some soong runs,
causing us to rebuild all go programs (and anything depending on them)
more often than necessary.

So instead, keep GOROOT undefined when running Soong. Everything that
matters is using runtime.GOROOT(), which will fall back to the default.

Continue setting $GOROOT for bootstrap.bash, otherwise it fails when
there is no system provided go binary. What we give bootstrap.bash
doesn't really matter, since we don't actually use the blueprint wrapper
in Android.

Test: m blueprint_tools; touch bionic/libc/tzcode/new.c;
      m blueprint_tools <doesn't rebuild everything>
Change-Id: I82f30c7c3b5d25e5cbf28fe37a97fdb776c4a164
2018-01-23 22:56:17 -08:00
..
sandbox/darwin Add exec.Cmd wrapper for logging / sandboxing 2017-05-05 16:25:40 -07:00
Android.bp Revert "Revert "Test for dangling rules in make checkbuild"" 2017-11-25 05:26:10 +00:00
build.go Revert "Revert "Test for dangling rules in make checkbuild"" 2017-11-25 05:26:10 +00:00
cleanbuild.go Add --skip-make to replace Soong's blueprint wrapper with soong_ui 2017-08-08 22:49:28 -07:00
config.go Normalize LANG / LC_* environment 2018-01-19 21:46:21 +00:00
config_test.go Parse environment options from the command line 2017-07-11 15:23:51 -07:00
context.go Apply kati output rewriting to dumpvars 2018-01-09 02:24:17 -08:00
dumpvars.go Apply kati output rewriting to dumpvars 2018-01-09 02:24:17 -08:00
environment.go Normalize LANG / LC_* environment 2018-01-19 21:46:21 +00:00
environment_test.go Add a Go replacement for our top-level Make wrapper 2017-02-06 14:05:07 -08:00
exec.go Only check for ninja stuckness after it's been running for a bit 2017-06-13 14:15:02 -07:00
finder.go Move android/soong/fs to android/soong/finder/fs 2017-12-22 13:56:17 -08:00
kati.go Apply kati output rewriting to dumpvars 2018-01-09 02:24:17 -08:00
ninja.go Add --skip-make to replace Soong's blueprint wrapper with soong_ui 2017-08-08 22:49:28 -07:00
proc_sync.go Revert "Revert "Disallow multiple build executions in parallel"" 2017-05-24 13:22:19 -07:00
proc_sync_test.go Revert "Revert "Disallow multiple build executions in parallel"" 2017-05-24 13:22:19 -07:00
sandbox_darwin.go Fix mac build 2017-11-08 12:50:38 -08:00
sandbox_linux.go Switch product configs from make to ckati 2017-10-12 18:11:08 -07:00
signal.go Improve signal handling in soong_ui 2017-02-22 10:44:19 -08:00
soong.go Make GOROOT consistent 2018-01-23 22:56:17 -08:00
test_build.go Revert "Revert "Test for dangling rules in make checkbuild"" 2017-11-25 05:26:10 +00:00
util.go Setup java paths in soong_ui 2017-11-08 00:44:47 -08:00
util_darwin.go Filter kati output to collapse verbose messages 2017-02-21 19:40:49 -08:00
util_linux.go Filter kati output to collapse verbose messages 2017-02-21 19:40:49 -08:00
util_test.go Filter kati output to collapse verbose messages 2017-02-21 19:40:49 -08:00