From e4b2a1a959b752d859dae622ebad0248b9ed23d0 Mon Sep 17 00:00:00 2001 From: Yang Ni Date: Thu, 6 Nov 2014 17:42:33 -0800 Subject: [PATCH] Made development/scripts/stack work on Mac. Change-Id: I9be1e50c0a635068017326738af4f5c38dddddab --- scripts/symbol.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/symbol.py b/scripts/symbol.py index a211c7ce0..bed274b50 100755 --- a/scripts/symbol.py +++ b/scripts/symbol.py @@ -21,6 +21,7 @@ The information can include symbol names, offsets, and source locations. import glob import os +import platform import re import subprocess import unittest @@ -75,7 +76,9 @@ def FindToolchain(): elif gcc_dir == "x86_64": 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: raise Exception("Could not find tool chain for %s" % (ARCH))