aboutsummaryrefslogtreecommitdiffstats
path: root/cc/arm_device.go
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2015-12-07 12:30:44 -0800
committerDan Willemsen <dwillemsen@google.com>2015-12-07 14:02:37 -0800
commit34fc3b1e84f645009e3cb21be0161eaa53d6d0f4 (patch)
tree88eefb2f3eea20944b0778500980948023313a8c /cc/arm_device.go
parent93c2831af1798870245ee516e51c29a49a395c21 (diff)
downloadbuild_soong-34fc3b1e84f645009e3cb21be0161eaa53d6d0f4.tar.gz
build_soong-34fc3b1e84f645009e3cb21be0161eaa53d6d0f4.tar.bz2
build_soong-34fc3b1e84f645009e3cb21be0161eaa53d6d0f4.zip
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
Diffstat (limited to 'cc/arm_device.go')
-rw-r--r--cc/arm_device.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cc/arm_device.go b/cc/arm_device.go
index 2d6d38c5..ccfefba8 100644
--- a/cc/arm_device.go
+++ b/cc/arm_device.go
@@ -121,6 +121,10 @@ var (
armClangArchVariantCflags = copyVariantFlags(armArchVariantCflags)
)
+const (
+ armGccVersion = "4.9"
+)
+
func copyVariantFlags(m map[string][]string) map[string][]string {
ret := make(map[string][]string, len(m))
for k, v := range m {
@@ -148,7 +152,7 @@ func init() {
"-mfpu=neon-vfpv4",
}
- pctx.StaticVariable("armGccVersion", "4.9")
+ pctx.StaticVariable("armGccVersion", armGccVersion)
pctx.StaticVariable("armGccRoot",
"prebuilts/gcc/${HostPrebuiltTag}/arm/arm-linux-androideabi-${armGccVersion}")
@@ -268,7 +272,7 @@ func (t *toolchainArm) GccTriple() string {
}
func (t *toolchainArm) GccVersion() string {
- return "${armGccVersion}"
+ return armGccVersion
}
func (t *toolchainArm) ToolchainCflags() string {