am 6274085c: am 27db85ff: Merge "Made development/scripts/stack work on Mac."

* commit '6274085c47dd50541d232c674fb958ce4c5be149':
  Made development/scripts/stack work on Mac.
This commit is contained in:
Elliott Hughes
2014-11-08 19:13:05 +00:00
committed by Android Git Automerger

View File

@@ -21,6 +21,7 @@ The information can include symbol names, offsets, and source locations.
import glob import glob
import os import os
import platform
import re import re
import subprocess import subprocess
import unittest import unittest
@@ -75,7 +76,9 @@ def FindToolchain():
elif gcc_dir == "x86_64": elif gcc_dir == "x86_64":
gcc_dir = "x86" gcc_dir = "x86"
available_toolchains = glob.glob("%s/prebuilts/gcc/linux-x86/%s/*-linux-*/bin/" % (ANDROID_BUILD_TOP, gcc_dir)) os_name = platform.system().lower();
available_toolchains = glob.glob("%s/prebuilts/gcc/%s-x86/%s/*-linux-*/bin/" % (ANDROID_BUILD_TOP, os_name, gcc_dir))
if len(available_toolchains) == 0: if len(available_toolchains) == 0:
raise Exception("Could not find tool chain for %s" % (ARCH)) raise Exception("Could not find tool chain for %s" % (ARCH))