summaryrefslogtreecommitdiffstats
path: root/scons/gallium.py
diff options
context:
space:
mode:
authorMichel Zou <[email protected]>2019-09-28 08:53:38 +0200
committerEric Engestrom <[email protected]>2019-09-28 16:53:08 +0000
commit3f92d17894bedf2da6aabe017004391b91a5e860 (patch)
treeb4abb93ff5f8b10b7d5ce75e639779967c5bc13a /scons/gallium.py
parent411e50a8fd0301067f2a67732dbf432177019704 (diff)
scons: add py3 support
SCons 3.1 has moved to python 3, requiring this fix to continue supporting scons builds. Closes: #944 Cc: [email protected] Acked-by: Eric Engestrom <[email protected]> Tested-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'scons/gallium.py')
-rwxr-xr-xscons/gallium.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scons/gallium.py b/scons/gallium.py
index 72d8604169e..9381f804a31 100755
--- a/scons/gallium.py
+++ b/scons/gallium.py
@@ -132,7 +132,7 @@ def check_cc(env, cc, expr, cpp_opt = '-E'):
sys.stdout.write('Checking for %s ... ' % cc)
source = tempfile.NamedTemporaryFile(suffix='.c', delete=False)
- source.write('#if !(%s)\n#error\n#endif\n' % expr)
+ source.write(('#if !(%s)\n#error\n#endif\n' % expr).encode())
source.close()
# sys.stderr.write('%r %s %s\n' % (env['CC'], cpp_opt, source.name));