diff options
author | Dan Willemsen <dwillemsen@google.com> | 2015-12-07 12:30:44 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2015-12-07 14:02:37 -0800 |
commit | 34fc3b1e84f645009e3cb21be0161eaa53d6d0f4 (patch) | |
tree | 88eefb2f3eea20944b0778500980948023313a8c /cc/x86_device.go | |
parent | 93c2831af1798870245ee516e51c29a49a395c21 (diff) | |
download | build_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/x86_device.go')
-rw-r--r-- | cc/x86_device.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/cc/x86_device.go b/cc/x86_device.go index 8543240c..6dfbd6ad 100644 --- a/cc/x86_device.go +++ b/cc/x86_device.go @@ -95,6 +95,10 @@ var ( } ) +const ( + x86GccVersion = "4.9" +) + func init() { common.RegisterArchFeatures(common.X86, "atom", "ssse3", @@ -133,10 +137,10 @@ func init() { "popcnt", "movbe") - pctx.StaticVariable("x86GccVersion", "4.9") + pctx.StaticVariable("x86GccVersion", x86GccVersion) pctx.StaticVariable("x86GccRoot", - "prebuilts/gcc/${HostPrebuiltTag}/x86/x86_64-linux-android-${armGccVersion}") + "prebuilts/gcc/${HostPrebuiltTag}/x86/x86_64-linux-android-${x86GccVersion}") pctx.StaticVariable("x86GccTriple", "x86_64-linux-android") @@ -188,7 +192,7 @@ func (t *toolchainX86) GccTriple() string { } func (t *toolchainX86) GccVersion() string { - return "${x86GccVersion}" + return x86GccVersion } func (t *toolchainX86) ToolchainLdflags() string { |