diff options
author | Jose Fonseca <[email protected]> | 2018-03-19 16:41:57 +0100 |
---|---|---|
committer | Roland Scheidegger <[email protected]> | 2018-03-19 16:41:57 +0100 |
commit | e10dc12f6f2f7513d96bbea87b93b8e338222188 (patch) | |
tree | bf4686bbde8c9e119a435f3d6e2dfa1d9ed43c21 /scons/gallium.py | |
parent | d07a49fb1840bb441e600ce942cb0088e7ea15c7 (diff) |
scons: need to split CC or things might fail
We've seen this fail internally.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-x | scons/gallium.py | 4 |
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') |