diff options
author | Dan Willemsen <dwillemsen@google.com> | 2017-02-22 22:03:04 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2017-02-22 22:03:04 -0800 |
commit | fde85346800d5a02be773b18c018c87127272ebf (patch) | |
tree | b4325970df1c47265c1f2fc8d1f9ae48814ecb45 /soong_ui.bash | |
parent | fd96d2421a5057621c4bb0c1f0ea6808de555dca (diff) | |
download | build_soong-fde85346800d5a02be773b18c018c87127272ebf.tar.gz build_soong-fde85346800d5a02be773b18c018c87127272ebf.tar.bz2 build_soong-fde85346800d5a02be773b18c018c87127272ebf.zip |
Don't use runtime.Version() to find the current go version
That will be the go version at compile time. So read $GOROOT/VERSION, or
fall back to executing `$GOROOT/bin/go version` to find the go version
currently in GOROOT.
Test: Ensure everything rebuilds when switching between go1.8rc2 and go1.8
Change-Id: I8738a7aa249a088b1e0668af260fa3974844dab7
Diffstat (limited to 'soong_ui.bash')
-rwxr-xr-x | soong_ui.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soong_ui.bash b/soong_ui.bash index 724d9c54..e1af359f 100755 --- a/soong_ui.bash +++ b/soong_ui.bash @@ -53,7 +53,7 @@ function run_go { # Increment when microfactory changes enough that it cannot rebuild itself. # For example, if we use a new command line argument that doesn't work on older versions. - local mf_version=1 + local mf_version=2 local mf_src="${TOP}/build/soong/cmd/microfactory" |