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

Unified Diff: site_scons/site_tools/distcc.py

Issue 8117: Pulling in latest software construction toolkit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 | « site_scons/site_tools/directx_9_0_c.py ('k') | site_scons/site_tools/gather_inputs.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site_scons/site_tools/distcc.py
===================================================================
--- site_scons/site_tools/distcc.py (revision 3849)
+++ site_scons/site_tools/distcc.py (working copy)
@@ -40,6 +40,7 @@
import optparse
import os
+import sys
from SCons.compat._scons_optparse import OptionConflictError
import SCons.Script
@@ -84,6 +85,9 @@
for compiler_var in ('CC', 'CXX'):
compiler = env.get(compiler_var)
if compiler in distcc_compilers:
+ if sys.platform == 'darwin':
+ # On Mac, distcc requires the full path to the compiler
+ compiler = env.WhereIs(compiler)
env[compiler_var] = '$DISTCC ' + compiler
« no previous file with comments | « site_scons/site_tools/directx_9_0_c.py ('k') | site_scons/site_tools/gather_inputs.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698