Merge "Made development/scripts/stack work on Mac."
diff --git a/scripts/symbol.py b/scripts/symbol.py
index a211c7c..bed274b 100755
--- a/scripts/symbol.py
+++ b/scripts/symbol.py
@@ -21,6 +21,7 @@
 
 import glob
 import os
+import platform
 import re
 import subprocess
 import unittest
@@ -75,7 +76,9 @@
   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))