Commit 94cb08a
committed
cmake: skip x86 cpu-feats helper in hybrid GGML_BACKEND_DL + GGML_CPU_STATIC builds
The cpu-feats OBJECT library implements the DL loader's variant score; it
is meaningful only when the CPU backend itself is a dlopen'd module. In
hybrid mode (GGML_BACKEND_DL=ON + GGML_CPU_STATIC=ON - the qvac diffusion
port configuration) the CPU backend is a static library registered
directly in-process, and PRIVATE-linking the un-exported OBJECT helper
into it makes configure fail at install(EXPORT ggml-targets):
includes target "ggml-cpu" which requires target "ggml-cpu-feats"
that is not in any export set.
ARM never hit this because its feats call is gated on
GGML_CPU_ALL_VARIANTS; x86 gated it on GGML_BACKEND_DL alone. Needed to
extend the Android hybrid mode to desktop Linux (QVAC-23767 / qvac#3853).1 parent f31dab0 commit 94cb08a
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
387 | 387 | | |
388 | 388 | | |
389 | 389 | | |
390 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
391 | 399 | | |
392 | 400 | | |
393 | 401 | | |
| |||
0 commit comments