summaryrefslogtreecommitdiffstats
path: root/llvm/utils/gn/build/write_vcsrevision.py
Commit message (Collapse)AuthorAgeFilesLines
* gn build: set HAVE_VCS_VERSION_INC while building Version.cppNico Weber2019-11-231-2/+9
| | | | | | | | | | And belatedly merge r353268 / r353269. test/Driver/wasm-toolchain-lto.c currently requires getLLVMRevision() to return something non-empty to pass. That's hopefully temporary, but making Version.cpp work is probalby a good idea regardless. (Note its contents will by default usually be out-of-date, because llvm_allow_tardy_revision defaults to false.)
* gn build: Fix Python 3 write_vcsrevision script compatibilitySerge Guelton2019-02-051-1/+1
| | | | | | | | | | 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
* gn build: Use "git rev-parse --git-dir" to discover the path to the .git ↵Peter Collingbourne2019-01-101-7/+8
| | | | | | | | | | directory. This makes it compatible with worktrees. Differential Revision: https://reviews.llvm.org/D56422 llvm-svn: 350897
* gn build: Fix a Python2ism in write_vcsrevision.py.Peter Collingbourne2019-01-091-2/+2
| | | | | | | | | | | | 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 llvm-svn: 350686
* [gn build] Add action to generate VCSRevision.h and use it to add ↵Nico Weber2018-12-011-0/+77
llvm/lib/Object/BUILD.gn Differential Revision: https://reviews.llvm.org/D55090 llvm-svn: 348054
OpenPOWER on IntegriCloud