From: Jose Fonseca Date: Mon, 19 Mar 2018 15:41:57 +0000 (+0100) Subject: scons: need to split CC or things might fail X-Git-Tag: upstream/18.1.0~836 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e10dc12f6f2f7513d96bbea87b93b8e338222188;p=platform%2Fupstream%2Fmesa.git scons: need to split CC or things might fail We've seen this fail internally. Reviewed-by: Roland Scheidegger --- diff --git a/scons/gallium.py b/scons/gallium.py index ef3b2ee..75200b8 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')