Commit 940e0dc
committed
[SYCL][CI] Improve clang++ version output
This patch adds "Nightly build" string to clang version output.
Previously it was like:
clang version 22.0.0git (https://github.com/intel/llvm.git
2de7d37)
Now it looks like:
clang version 22.0.0git (https://github.com/intel/llvm.git 2de7d37 Nightly build)
I'm preserving the repo path, but extending the revision. Anyways, we need to define both CLANG_VC_REPOSITORY and CLANG_VC_REVISION CMake variables to redefine the output, see: llvm/llvm/cmake/modules/GenerateVersionFromVCS.cmake
Moreover, we need to define LLVM_VC_REPOSITORY & LLVM_VC_REVISION,
because if it's not the same as CLANG_VC_* variables, there will be two
sections of brackets after clang version, like:
clang version 22.0.0git (https://github.com/intel/llvm.git
2de7d37) (https://github.com/intel/llvm.git 2de7d37 Nightly build)
This is kind of hacky, but it allows as not to change the source code.1 parent 5df5f45 commit 940e0dc
File tree
3 files changed
+14
-6
lines changed- .github/workflows
3 files changed
+14
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
| 208 | + | |
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
191 | 194 | | |
192 | 195 | | |
193 | 196 | | |
194 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
195 | 201 | | |
196 | 202 | | |
197 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
147 | 147 | | |
148 | 148 | | |
149 | 149 | | |
150 | | - | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
0 commit comments