Index: tools/clang/scripts/update.py |
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py |
index d3cf8e0c821485363658ed8c02ab75888dc24d95..e8601007e539957682424667e58bed7d76ebc5d8 100755 |
--- a/tools/clang/scripts/update.py |
+++ b/tools/clang/scripts/update.py |
@@ -167,14 +167,6 @@ def WriteStampFile(s, path=STAMP_FILE): |
def GetSvnRevision(svn_repo): |
"""Returns current revision of the svn repo at svn_repo.""" |
- if sys.platform == 'darwin': |
- # mac_files toolchain must be set for hermetic builds. |
- root = os.path.dirname(os.path.dirname(os.path.dirname( |
- os.path.dirname(__file__)))) |
- sys.path.append(os.path.join(root, 'build')) |
- import mac_toolchain |
- |
- mac_toolchain.SetToolchainEnvironment() |
svn_info = subprocess.check_output('svn info ' + svn_repo, shell=True) |
justincohen
2016/10/13 20:34:22
I wonder what changed -- this used to fail before
erikchen
2016/10/13 20:42:48
The only thing I can think of is that when this fa
|
m = re.search(r'Revision: (\d+)', svn_info) |
return m.group(1) |