Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2664)

Unified Diff: build/mac_toolchain.py

Issue 1840323002: Add mac toolchain script support to find_sdk script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Create SetToolchainEnvironment method Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/mac/find_sdk.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/mac_toolchain.py
diff --git a/build/mac_toolchain.py b/build/mac_toolchain.py
index b57c8159a32aa0d4933d6da35298a934d5beeb3e..1da6cb59c73c938019ee4d8cef8378b783c2c873 100755
--- a/build/mac_toolchain.py
+++ b/build/mac_toolchain.py
@@ -44,6 +44,12 @@ def GetToolchainDirectory():
return None
+def SetToolchainEnvironment():
+ mac_toolchain_dir = GetToolchainDirectory()
+ if mac_toolchain_dir:
+ os.environ['DEVELOPER_DIR'] = mac_toolchain_dir
+
+
def ReadStampFile():
"""Return the contents of the stamp file, or '' if it doesn't exist."""
try:
« no previous file with comments | « build/mac/find_sdk.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698