Fix symbol.py's toolchain detection for x86.

x86 uses the x86_64 toolchain. There's no separate 32-bit toolchain.

I started to refactor so we could add FindToolchain tests, but that doesn't
work because FindToolchain depends on environment variables set up by 'lunch'.

Change-Id: I264b95e1e83a7e795f8cac49bc9e1cf497514029
This commit is contained in:
Elliott Hughes
2014-07-07 15:06:28 -07:00
parent afab5877ee
commit c3166bec1c
3 changed files with 171 additions and 152 deletions

View File

@@ -62,12 +62,15 @@ def FindToolchain():
if TOOLCHAIN is not None:
return TOOLCHAIN
# We use slightly different names from GCC.
# We use slightly different names from GCC, and there's only one toolchain
# for x86/x86_64.
gcc_arch = ARCH
if gcc_arch == "arm64":
gcc_arch = "aarch64"
elif gcc_arch == "mips":
gcc_arch = "mipsel"
elif gcc_arch == "x86":
gcc_arch = "x86_64"
tc1 = os.environ["ANDROID_TOOLCHAIN"]
tc2 = os.environ["ANDROID_TOOLCHAIN_2ND_ARCH"]