diff options
Diffstat (limited to 'site_scons/site_tools/distcc.py')
-rw-r--r-- | site_scons/site_tools/distcc.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/site_scons/site_tools/distcc.py b/site_scons/site_tools/distcc.py index 8f79042..6f4b9fc 100644 --- a/site_scons/site_tools/distcc.py +++ b/site_scons/site_tools/distcc.py @@ -40,6 +40,7 @@ line. import optparse import os +import sys from SCons.compat._scons_optparse import OptionConflictError import SCons.Script @@ -84,6 +85,9 @@ def generate(env): 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 |