Commit 06ad668
Skip backend pass registration when built as static library
When clad is built with CLAD_BUILD_STATIC_ONLY=ON, only static archives
are produced (libcladDifferentiator.a, libcladPlugin.a) and no clad.so
In ROOT, when using clad, dladdr is resolved to libCling.so and then
registered as an LLVM pass plugin.
In LLVM20 this is ignored. In LLVM22 this errors out with:
```
error: unable to load plugin 'libCling.so':
'Plugin entry point not found in 'libCling.so'. Is this a legacy plugin?'
```
causing all rootcling dictionary generation steps to fail.1 parent 5e8e74e commit 06ad668
2 files changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
147 | 149 | | |
148 | 150 | | |
149 | 151 | | |
| |||
0 commit comments