Commit 0f26c25
committed
[Comgr] Fix obtaining git's commit and branch
CMAKE_SOURCE_DIR points either to <llvm-prject-root>/llvm or to <comgr-project-root>.
In in-tree builds, "${CMAKE_SOURCE_DIR}/../../.git" points outside of the
repo. In out-of-tree builds this also points outside of comgr's repo.
We can just run it in <comgr-project-root> directly, which will work in
both cases.
AMD_COMGR_GIT_BRANCH was never assigned.1 parent a78a7c8 commit 0f26c25
1 file changed
+18
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 16 | | |
27 | 17 | | |
28 | | - | |
| 18 | + | |
29 | 19 | | |
30 | 20 | | |
| 21 | + | |
31 | 22 | | |
32 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | 39 | | |
35 | | - | |
| 40 | + | |
36 | 41 | | |
37 | 42 | | |
38 | 43 | | |
| |||
0 commit comments