forked from OSchip/llvm-project
gn build: Fix Python 3 write_vcsrevision script compatibility
Trivial fix: decode was not called for all subprocess.check_output calls. Commited on behalf of Andrew Boyarshin Differential Revision: https://reviews.llvm.org/D57505 llvm-svn: 353168
This commit is contained in:
parent
62af24cc93
commit
cad6336675
|
@ -47,7 +47,7 @@ def main():
|
|||
use_shell = True
|
||||
|
||||
git_dir = subprocess.check_output([git, 'rev-parse', '--git-dir'],
|
||||
cwd=LLVM_DIR, shell=use_shell).strip()
|
||||
cwd=LLVM_DIR, shell=use_shell).decode().strip()
|
||||
if not os.path.isdir(git_dir):
|
||||
print('.git dir not found at "%s"' % git_dir, file=sys.stderr)
|
||||
return 1
|
||||
|
|
Loading…
Reference in New Issue