commit | ca3d5270844cf978b6859a5541b90f395cddc88d | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Wed Jan 09 04:05:07 2019 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Wed Jan 09 04:05:07 2019 +0000 |
tree | e8ee6727106f41da304dfcedc7cb85493adbe617 | |
parent | 1a79f8b30a83b5136b14e9e714ea9e966e370805 [diff] |
gn build: Fix a Python2ism in write_vcsrevision.py. Convert the output of "git rev-parse --short HEAD" to a string before substituting it into the output file. Without this the output file will look like this on Python 3: #define LLVM_REVISION "git-b'6a4895a025f'" Differential Revision: https://reviews.llvm.org/D56459 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350686 91177308-0d34-0410-b5e6-96231b3b80d8