Commit 053f864e by Ruslan Baratov Committed by Tianqi Chen

xcode.py: Decode bytes before output (#2833)

parent c5c17874
......@@ -138,7 +138,7 @@ def compile_metal(code, path_target=None, sdk="macosx"):
(out, _) = proc.communicate()
if proc.returncode != 0:
sys.stderr.write("Compilation error:\n")
sys.stderr.write(out)
sys.stderr.write(py_str(out))
sys.stderr.flush()
libbin = None
else:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment