Expose real GccVersion
In order to validate that the NDK STL paths exists, we need to know
the full path, including the Gcc version during the go execution. So
instead of returning a ninja variable reference, just return the
contents of the variable.
This also fixes a few invalid uses of armGccVersion to the proper
variable.
Change-Id: I54398ba4aa4000235b7d537a2c4efe3ecbbeec8b
diff --git a/cc/mips64_device.go b/cc/mips64_device.go
index e0b6a89..5aa5bc3 100644
--- a/cc/mips64_device.go
+++ b/cc/mips64_device.go
@@ -80,14 +80,18 @@
}
)
+const (
+ mips64GccVersion = "4.9"
+)
+
func init() {
common.RegisterArchFeatures(common.Mips64, "mips64r6",
"rev6")
- pctx.StaticVariable("mips64GccVersion", "4.9")
+ pctx.StaticVariable("mips64GccVersion", mips64GccVersion)
pctx.StaticVariable("mips64GccRoot",
- "prebuilts/gcc/${HostPrebuiltTag}/mips/mips64el-linux-android-${armGccVersion}")
+ "prebuilts/gcc/${HostPrebuiltTag}/mips/mips64el-linux-android-${mips64GccVersion}")
pctx.StaticVariable("mips64GccTriple", "mips64el-linux-android")
@@ -138,7 +142,7 @@
}
func (t *toolchainMips64) GccVersion() string {
- return "${mips64GccVersion}"
+ return mips64GccVersion
}
func (t *toolchainMips64) ToolchainLdflags() string {