]> git.djapps.eu Git - pkg/ggml/sources/ggml/commit
ggml: ggml-cpu: force-no-lto-for-cpu-feats (llama/19609)
authorTalha Can Havadar <redacted>
Tue, 17 Feb 2026 11:22:46 +0000 (12:22 +0100)
committerGeorgi Gerganov <redacted>
Wed, 25 Feb 2026 10:32:13 +0000 (12:32 +0200)
commitfd6f1f2796e1c2ba88dcd302d4d9feb4e7cf1e10
tree5692b44c4f0b70dc3230fdf020bd3ef81c512f04
parent23c1635e020550549e877aa38ab8ada84f336a4b
ggml: ggml-cpu: force-no-lto-for-cpu-feats (llama/19609)

When LTO enabled in build environments it forces all builds to have LTO
in place. But feature detection logic is fragile, and causing Illegal
instruction errors with lto. This disables LTO for the feature
detection code to prevent cross-module optimization from inlining
architecture-specific instructions into the score function. Without this,
LTO can cause SIGILL when loading backends on older CPUs (e.g., loading
power10 backend on power9 crashes before feature check runs).
src/ggml-cpu/CMakeLists.txt