Commit 2af08ff
authored
[SYCL] set __SYCL_COMPILER_VERSION from CMake variable or git commit timestamp (#19845)
This PR changes the way CMake sets `__SYCL_COMPILER_VERSION` from using
the date of compilation to:
- using `-DSYCL_COMPILER_VERSION=...` if set
- otherwise, running git to get the timestamp of the latest commit, and
using that
- falling back to the old behavior if the first two fail
See #19692 for the rationale behind this. TL;DR: Make
`__SYCL_COMPILER_VERSION` reproducible. Closes #19692.1 parent 9b938b1 commit 2af08ff
1 file changed
+27
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
194 | 220 | | |
195 | 221 | | |
196 | 222 | | |
| |||
0 commit comments