diff options
author | Elliott Hughes <enh@google.com> | 2014-11-08 19:00:32 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-11-08 19:00:32 +0000 |
commit | 27db85ff168f4d32d553fd85d03964d0c9daa25f (patch) | |
tree | 9f0e2b1f18738cd16b5b40e417a2bef735a9156d /scripts | |
parent | fc3c82562d061dcfc5760817371b1c5d125d95a7 (diff) | |
parent | e4b2a1a959b752d859dae622ebad0248b9ed23d0 (diff) | |
download | android_development-27db85ff168f4d32d553fd85d03964d0c9daa25f.tar.gz android_development-27db85ff168f4d32d553fd85d03964d0c9daa25f.tar.bz2 android_development-27db85ff168f4d32d553fd85d03964d0c9daa25f.zip |
Merge "Made development/scripts/stack work on Mac."
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/symbol.py | 5 |
1 files changed, 4 insertions, 1 deletions
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)) |