Commit fe9db0e
feat(core): convert Linker.backend from property to classmethod
Make `Linker.backend` callable without instantiation, allowing
downstream libraries (e.g., numba-cuda) to query which linking
backend will be used before constructing a Linker.
The classmethod calls `_decide_nvjitlink_or_driver()` and maps
its return value to "nvJitLink" or "driver". Existing call sites
updated to use parens (`linker.backend()` instead of
`linker.backend`).
Breaking change: attribute-style access `linker.backend` now
returns a bound method, not a string. Only two in-repo call sites
affected; both updated.
Refs #714
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 82e6bb8 commit fe9db0e
File tree
3 files changed
+18
-6
lines changed- cuda_core
- cuda/core
- tests
3 files changed
+18
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
174 | 186 | | |
175 | 187 | | |
176 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
649 | 649 | | |
650 | 650 | | |
651 | 651 | | |
652 | | - | |
| 652 | + | |
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
0 commit comments