mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
lit: Workaround a Win32/subprocess bug when appending.
llvm-svn: 86437
This commit is contained in:
parent
a8040023d7
commit
dedae84dd3
@ -112,6 +112,9 @@ def executeShCmd(cmd, cfg, cwd, results):
|
||||
r[2] = tempfile.TemporaryFile(mode=r[1])
|
||||
else:
|
||||
r[2] = open(r[0], r[1])
|
||||
# Workaround a Win32 and/or subprocess bug when appending.
|
||||
if r[1] == 'a':
|
||||
r[2].seek(0, os.SEEK_END)
|
||||
result = r[2]
|
||||
final_redirects.append(result)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user