diff options
author | Han Zhu <zhuhan7737@gmail.com> | 2023-04-10 15:40:15 -0700 |
---|---|---|
committer | Han Zhu <zhuhan7737@gmail.com> | 2023-04-17 10:54:28 -0700 |
commit | ee68f612ba682ddb911c5621e63df56039ec5824 (patch) | |
tree | c089507d3a23b64681dfc47b5c9b47b40da77e64 /llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | |
parent | 932d7b9ddd23bfbe9ac1e8a2dabab8e457993ed4 (diff) | |
download | llvm-ee68f612ba682ddb911c5621e63df56039ec5824.zip llvm-ee68f612ba682ddb911c5621e63df56039ec5824.tar.gz llvm-ee68f612ba682ddb911c5621e63df56039ec5824.tar.bz2 |
Second try: [clang][cmake] Add options to pass in vcs repo and revision info
V2: Fix cmake error when -DLLVM_APPEND_VC_REV=OFF
Clang may be built in an environment where Git is not available. In our case,
Clang is part of a larger monorepo which is not Git-based, and
GenerateVersionFromVCS was not able to get source info.
Provide options to pass in repo and revision info from cmake.
```
cmake \
-DCLANG_VC_REPOSITORY=abc://repo.url.com \
-DCLANG_VC_REVISION=abcd1234 \
...
```
This would allow us to prepare the source info beforehand and pass it to the
clang binary.
Differential Revision: https://reviews.llvm.org/D148262
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp')
0 files changed, 0 insertions, 0 deletions