summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscons/gallium.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index ef3b2ee81ae..75200b89c1f 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -134,7 +134,9 @@ def check_cc(env, cc, expr, cpp_opt = '-E'):
source.write('#if !(%s)\n#error\n#endif\n' % expr)
source.close()
- pipe = SCons.Action._subproc(env, [env['CC'], cpp_opt, source.name],
+ # sys.stderr.write('%r %s %s\n' % (env['CC'], cpp_opt, source.name));
+
+ pipe = SCons.Action._subproc(env, env.Split(env['CC']) + [cpp_opt, source.name],
stdin = 'devnull',
stderr = 'devnull',
stdout = 'devnull')